Skip to content

Commit

Permalink
use template text for error
Browse files Browse the repository at this point in the history
  • Loading branch information
lubedacht committed Jan 15, 2024
1 parent 955536c commit 6a6380f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ionoscloud/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (c *IonosCloudClient) GetRequests(ctx context.Context, method, path string)
FilterCreatedAfter(lookback).
Execute()
if err != nil {
return nil, fmt.Errorf("failed to get requests: %w", err)
return nil, fmt.Errorf(apiCallErrWrapper, err)
}
if reqs.Items == nil {
// NOTE(lubedacht): This shouldn't happen, but we shouldn't deref
Expand Down

0 comments on commit 6a6380f

Please sign in to comment.