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

Commitccfd1a5

Browse files
authored
chore: improve device handling error message (#11606)
1 parent593a1e9 commitccfd1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/externalauth/externalauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (c *DeviceAuth) AuthorizeDevice(ctx context.Context) (*codersdk.ExternalAut
327327
casehttp.StatusTooManyRequests:
328328
returnnil,xerrors.New("rate limit hit, unable to authorize device. please try again later")
329329
default:
330-
returnnil,err
330+
returnnil,fmt.Errorf("status_code=%d: %w",resp.StatusCode,err)
331331
}
332332
}
333333
ifr.ErrorDescription!="" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp