mirror of
https://github.com/Xevion/glance.git
synced 2025-12-06 13:15:13 -06:00
Use fmt.Errorf instead
This commit is contained in:
@@ -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))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user