diff --git a/common/src/util/api.ts b/common/src/util/api.ts index 441148a5..c5484ff7 100644 --- a/common/src/util/api.ts +++ b/common/src/util/api.ts @@ -50,7 +50,8 @@ export async function typedAPICall

( } if (!resp.ok) { - throw new APIError(resp.status as any, json?.error?.message, json?.error?.details) + json = json?.error ?? json + throw new APIError(resp.status as any, json?.message, json?.details) } return json }) as APIResponse