From cf2cd1622d21d69998a7497a4b76e7057c6215e3 Mon Sep 17 00:00:00 2001 From: Kris La Date: Wed, 17 Apr 2024 16:11:58 +0200 Subject: [PATCH] errors --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 03de90d7..bb184426 100644 --- a/client.go +++ b/client.go @@ -120,7 +120,7 @@ func unmarshalApiErrorObject(data []byte) (APIErrorObject, error) { return aeo, nil } // still failed, so return the original error - return aeo, err + return aeo, fmt.Errorf(string(data)) } // NullAPIErrorObject is a wrapper around the APIErrorObject type. If the Valid