mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd): correct the name of the unmarshall error variable (#20150)
Incorrect error variable is used during reporting of the issue during unmarshall operations and this makes it hard to understand the underlying reason for OIDC failure: use `unmarshalError` instead of `err`.
This commit is contained in:
@@ -247,7 +247,7 @@ func (src *jwtTokenSource) Token() (*oauth2.Token, error) {
|
||||
}
|
||||
|
||||
if unmarshalError != nil {
|
||||
return nil, xerrors.Errorf("oauth2: cannot unmarshal token: %w", err)
|
||||
return nil, xerrors.Errorf("oauth2: cannot unmarshal token: %w", unmarshalError)
|
||||
}
|
||||
|
||||
newToken := &oauth2.Token{
|
||||
|
||||
Reference in New Issue
Block a user