Compare commits

..

1 Commits

Author SHA1 Message Date
JustSong
6da3410823 fix: fix channel test error checking 2023-05-18 11:41:03 +08:00

View File

@@ -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