Skip to content

Commit 365f457

Browse files
committed
fix: default paramenter
1 parent 96704b8 commit 365f457

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/atlas/apiClientError.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export class ApiClientError extends Error {
77
this.response = response;
88
}
99

10-
static async fromResponse(response: Response, message?: string): Promise<ApiClientError> {
11-
message ||= `error calling Atlas API`;
10+
static async fromResponse(response: Response, message: string = `error calling Atlas API`): Promise<ApiClientError> {
1211
try {
1312
const text = await response.text();
1413
return new ApiClientError(`${message}: [${response.status} ${response.statusText}] ${text}`, response);

0 commit comments

Comments
 (0)