Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit039fa89

Browse files
authored
fix(coderd): correct the name of the unmarshall error variable (#20150)
Incorrect error variable is used during reporting of the issue duringunmarshall operations and this makes it hard to understand theunderlying reason for OIDC failure: use `unmarshalError` instead of`err`.
1 parentffcb7a1 commit039fa89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/oauthpki/oidcpki.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (src *jwtTokenSource) Token() (*oauth2.Token, error) {
247247
}
248248

249249
ifunmarshalError!=nil {
250-
returnnil,xerrors.Errorf("oauth2: cannot unmarshal token: %w",err)
250+
returnnil,xerrors.Errorf("oauth2: cannot unmarshal token: %w",unmarshalError)
251251
}
252252

253253
newToken:=&oauth2.Token{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp