diff --git a/apis/client.go b/apis/client.go index 5fc8111..87e2fb5 100644 --- a/apis/client.go +++ b/apis/client.go @@ -49,7 +49,7 @@ func (c *Client) Do(method constant.HTTPMethod, endpoint string, body, result an if err := sonic.Unmarshal(resp.Body(), &baseResp); err != nil { return err } - return fmt.Errorf(fmt.Sprint(baseResp.Code)) + return fmt.Errorf("unexpected response: %+v", baseResp) } return nil