Procházet zdrojové kódy

fix: fix channel test error checking

JustSong před 2 roky
rodič
revize
6da3410823
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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