Use errors.Join() to join errors
Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
This commit is contained in:
parent
aadfd3017f
commit
973611612e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func Discover(ctx context.Context, issuer string, httpClient *http.Client, wellK
|
|||
discoveryConfig := new(oidc.DiscoveryConfiguration)
|
||||
err = httphelper.HttpRequest(httpClient, req, &discoveryConfig)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%w: %w", oidc.ErrDiscoveryFailed, err)
|
||||
return nil, errors.Join(err, oidc.ErrDiscoveryFailed)
|
||||
}
|
||||
if logger, ok := logging.FromContext(ctx); ok {
|
||||
logger.Debug("discover", "config", discoveryConfig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue