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 b1b475b commit f2c5f39Copy full SHA for f2c5f39
src/api/index.ts
@@ -297,7 +297,7 @@ export class AtelierAPI {
297
checkConnection(true, typeof this.wsOrFile === "object" ? this.wsOrFile : undefined);
298
}, 1000);
299
}
300
- throw response;
+ throw { statusCode: response.status, message: response.statusText };
301
302
await this.updateCookies(response.headers.raw()["set-cookie"] || []);
303
panel.text = `${connInfo}`;
@@ -308,7 +308,7 @@ export class AtelierAPI {
308
309
310
if (!response.ok) {
311
- throw { statusCode: response.status, statusText: response.statusText };
312
313
314
const buffer = await response.buffer();
0 commit comments