Skip to content

Commit

Permalink
fix: fix channel test error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed May 18, 2023
1 parent ceb289c commit 6da3410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6da3410

Please sign in to comment.