Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 20, 2024
1 parent cca2574 commit d8538e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/thorchain/api_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8538e2

Please sign in to comment.