Skip to content

Commit

Permalink
fix(auth-callout): use sdk error
Browse files Browse the repository at this point in the history
Signed-off-by: Rodney Osodo <[email protected]>
  • Loading branch information
rodneyosodo committed Feb 24, 2025
1 parent 34486e9 commit 26e4b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *callback) makeRequest(ctx context.Context, method, urlStr string, param
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return errors.Wrap(svcerr.ErrAuthorization, fmt.Errorf("status code %d", resp.StatusCode))
return errors.NewSDKErrorWithStatus(svcerr.ErrAuthorization, resp.StatusCode)
}

return nil
Expand Down

0 comments on commit 26e4b56

Please sign in to comment.