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 4e2ecbe commit fb3230eCopy full SHA for fb3230e
src/services/api.ts
@@ -39,7 +39,10 @@ export class APIService {
39
}
40
41
const data = await response.json().catch(() => {
42
- throw new SquareCloudAPIError("CANNOT_PARSE_RESPONSE", "Try again later");
+ throw new SquareCloudAPIError(
43
+ "CANNOT_PARSE_RESPONSE",
44
+ `Failed with status ${response.status}`,
45
+ );
46
});
47
48
if (!data || data.status === "error" || !response.ok) {
0 commit comments