From d8538e2e6b896065ee2ad9359460165acbe977ba Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Fri, 20 Sep 2024 11:09:48 -0500 Subject: [PATCH] lint --- chain/thorchain/api_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/thorchain/api_query.go b/chain/thorchain/api_query.go index 559243664..34faf67e8 100644 --- a/chain/thorchain/api_query.go +++ b/chain/thorchain/api_query.go @@ -195,7 +195,7 @@ func get(url string, target interface{}) error { errResp := ErrorResponse{} err = json.Unmarshal(buf, &errResp) if err == nil && errResp.Error != "" { - return fmt.Errorf(errResp.Error) + return fmt.Errorf("api error: %s", errResp.Error) } // decode response