Skip to content

Commit ccfd1a5

Browse files
authored
chore: improve device handling error message (#11606)
1 parent 593a1e9 commit ccfd1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/externalauth/externalauth.go

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

0 commit comments

Comments
 (0)