From 26e4b565298255923f1d33db83522c143a76a077 Mon Sep 17 00:00:00 2001 From: Rodney Osodo Date: Mon, 24 Feb 2025 16:26:29 +0300 Subject: [PATCH] fix(auth-callout): use sdk error Signed-off-by: Rodney Osodo --- auth/callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/callback.go b/auth/callback.go index 07d70ea80b..c73abe81c1 100644 --- a/auth/callback.go +++ b/auth/callback.go @@ -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