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