File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,7 @@ export class ApiClientError extends Error {
36
36
message ||= `error calling Atlas API` ;
37
37
try {
38
38
const text = await response . text ( ) ;
39
- return new ApiClientError (
40
- `${ message } : [${ response . status } ${ response . statusText } ] ${ text } ` ,
41
- response
42
- ) ;
39
+ return new ApiClientError ( `${ message } : [${ response . status } ${ response . statusText } ] ${ text } ` , response ) ;
43
40
} catch {
44
41
return new ApiClientError ( `${ message } : ${ response . status } ${ response . statusText } ` , response ) ;
45
42
}
@@ -150,10 +147,16 @@ export class ApiClient {
150
147
if ( errorResponse . errorCode === "DEVICE_AUTHORIZATION_PENDING" ) {
151
148
throw await ApiClientError . fromResponse ( response , "Authentication pending. Try again later." ) ;
152
149
} else {
153
- throw await ApiClientError . fromResponse ( response , "Device code expired. Please restart the authentication process." ) ;
150
+ throw await ApiClientError . fromResponse (
151
+ response ,
152
+ "Device code expired. Please restart the authentication process."
153
+ ) ;
154
154
}
155
155
} catch {
156
- throw await ApiClientError . fromResponse ( response , "Failed to retrieve token. Please check your device code." ) ;
156
+ throw await ApiClientError . fromResponse (
157
+ response ,
158
+ "Failed to retrieve token. Please check your device code."
159
+ ) ;
157
160
}
158
161
}
159
162
You can’t perform that action at this time.
0 commit comments