fix: missing json

main
spacemeowx2 2022-10-20 21:49:41 +08:00
parent 52efc01cad
commit ddd086cd7e
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ export class APIError extends Error {
response: Response;
json: unknown;
constructor(
{ response, message }: {
{ response, json, message }: {
response: Response;
json?: unknown;
message?: string;
@ -10,5 +10,6 @@ export class APIError extends Error {
) {
super(message);
this.response = response;
this.json = json;
}
}