Use fmt.Errorf instead
This commit is contained in:
parent
0769f33653
commit
0612dc6f89
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ func fetchCustomAPIRequest(ctx context.Context, req *CustomAPIRequest) (*customA
|
|||
return nil, errors.New("invalid response JSON")
|
||||
}
|
||||
|
||||
return nil, errors.New(fmt.Sprintf("%d %s", resp.StatusCode, http.StatusText(resp.StatusCode)))
|
||||
return nil, fmt.Errorf("%d %s", resp.StatusCode, http.StatusText(resp.StatusCode))
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue