From b0dc7f6f60a89ebb614450e330f285e008badc49 Mon Sep 17 00:00:00 2001 From: ProtoTess <32490978+0x524A@users.noreply.github.com> Date: Tue, 18 Nov 2025 17:49:13 +0000 Subject: [PATCH] fix: Improve error message formatting in download functions --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index ae70218..de8909a 100644 --- a/client.go +++ b/client.go @@ -278,7 +278,7 @@ func (c *Client) downloadWithBasicAuth(ctx context.Context, downloadURL string) errorMsg += fmt.Sprintf("\n 📝 Response: %s", bodyStr) } - return nil, fmt.Errorf(errorMsg) + return nil, fmt.Errorf("%s", errorMsg) } data, err := io.ReadAll(resp.Body) @@ -354,10 +354,10 @@ func (c *Client) downloadWithDigestAuth(ctx context.Context, downloadURL string) } if bodyStr != "" { - errorMsg += fmt.Sprintf("\n � Response: %s", bodyStr) + errorMsg += fmt.Sprintf("\n 📝 Response: %s", bodyStr) } - return nil, fmt.Errorf(errorMsg) + return nil, fmt.Errorf("%s", errorMsg) } data, err := io.ReadAll(resp.Body)