瀏覽代碼

fix: fix channel test error checking

JustSong 3 年之前
父節點
當前提交
14662c3fde
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controller/channel.go

+ 1 - 1
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