Add missing tracerr.Wrap

This commit is contained in:
Eduard S
2020-12-24 13:39:27 +01:00
parent 2205fcadbc
commit a0c8ace38d
4 changed files with 11 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ func getTokenPriceBitfinex(ctx context.Context, client *sling.Sling,
return 0, tracerr.Wrap(err)
}
if res.StatusCode != http.StatusOK {
return 0, fmt.Errorf("http response is not is %v", res.StatusCode)
return 0, tracerr.Wrap(fmt.Errorf("http response is not is %v", res.StatusCode))
}
return state[6], nil
}