We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96704b8 commit 365f457Copy full SHA for 365f457
src/common/atlas/apiClientError.ts
@@ -7,8 +7,7 @@ export class ApiClientError extends Error {
7
this.response = response;
8
}
9
10
- static async fromResponse(response: Response, message?: string): Promise<ApiClientError> {
11
- message ||= `error calling Atlas API`;
+ static async fromResponse(response: Response, message: string = `error calling Atlas API`): Promise<ApiClientError> {
12
try {
13
const text = await response.text();
14
return new ApiClientError(`${message}: [${response.status} ${response.statusText}] ${text}`, response);
0 commit comments