update client error format

This commit is contained in:
2026-08-02 22:08:55 +08:00
parent 525e0e7412
commit 8b07c125d5
+1 -1
View File
@@ -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