Directly handle returned error
Co-authored-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
parent
919d491cdc
commit
de787a2948
|
|
@ -73,9 +73,8 @@ func (p *CIDAASProvider) EnrichSession(ctx context.Context, s *sessions.SessionS
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to get missing emails or groups from a profileURL
|
// Try to get missing emails or groups from a profileURL
|
||||||
err := p.enrichFromUserinfoEndpoint(ctx, s)
|
if err := p.enrichFromUserinfoEndpoint(ctx, s); err != nil {
|
||||||
if err != nil {
|
logger.Errorf("Warning: Profile URL request failed: %w", err)
|
||||||
logger.Errorf("Warning: Profile URL request failed: %v", err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a mandatory email wasn't set, error at this point.
|
// If a mandatory email wasn't set, error at this point.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue