diff --git a/controller/channel.go b/controller/channel.go index 1b863a0d..3f047546 100644 --- a/controller/channel.go +++ b/controller/channel.go @@ -201,7 +201,7 @@ func testChannel(channel *model.Channel, request *ChatRequest) error { if err != nil { return err } - if response.Error.Type != "" { + if response.Error.Message != "" { return errors.New(fmt.Sprintf("type %s, code %s, message %s", response.Error.Type, response.Error.Code, response.Error.Message)) } return nil