Skip to content

Commit

Permalink
Wrap ResolveEndpoints error
Browse files Browse the repository at this point in the history
  • Loading branch information
kgeckhart authored and bgavrilMS committed Oct 7, 2024
1 parent 5b82c58 commit 5b3ea02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/internal/oauth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (t *Client) DeviceCode(ctx context.Context, authParams authority.AuthParams
func (t *Client) resolveEndpoint(ctx context.Context, authParams *authority.AuthParams, userPrincipalName string) error {
endpoints, err := t.Resolver.ResolveEndpoints(ctx, authParams.AuthorityInfo, userPrincipalName)
if err != nil {
return fmt.Errorf("unable to resolve an endpoint: %s", err)
return fmt.Errorf("unable to resolve an endpoint: %w", err)
}
authParams.Endpoints = endpoints
return nil
Expand Down

0 comments on commit 5b3ea02

Please sign in to comment.