From 8b07c125d56934e3c0695c07d719b2d1658ef381 Mon Sep 17 00:00:00 2001 From: Fendy Date: Sun, 2 Aug 2026 22:08:55 +0800 Subject: [PATCH] update client error format --- apis/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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