Skip to content

Commit 5b3ea02

Browse files
kgeckhartbgavrilMS
authored andcommitted
Wrap ResolveEndpoints error
1 parent 5b82c58 commit 5b3ea02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/internal/oauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func (t *Client) DeviceCode(ctx context.Context, authParams authority.AuthParams
331331
func (t *Client) resolveEndpoint(ctx context.Context, authParams *authority.AuthParams, userPrincipalName string) error {
332332
endpoints, err := t.Resolver.ResolveEndpoints(ctx, authParams.AuthorityInfo, userPrincipalName)
333333
if err != nil {
334-
return fmt.Errorf("unable to resolve an endpoint: %s", err)
334+
return fmt.Errorf("unable to resolve an endpoint: %w", err)
335335
}
336336
authParams.Endpoints = endpoints
337337
return nil

0 commit comments

Comments
 (0)