mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve device handling error message (#11606)
This commit is contained in:
@@ -327,7 +327,7 @@ func (c *DeviceAuth) AuthorizeDevice(ctx context.Context) (*codersdk.ExternalAut
|
||||
case http.StatusTooManyRequests:
|
||||
return nil, xerrors.New("rate limit hit, unable to authorize device. please try again later")
|
||||
default:
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("status_code=%d: %w", resp.StatusCode, err)
|
||||
}
|
||||
}
|
||||
if r.ErrorDescription != "" {
|
||||
|
||||
Reference in New Issue
Block a user