fix: missing json
parent
52efc01cad
commit
ddd086cd7e
|
|
@ -2,7 +2,7 @@ export class APIError extends Error {
|
||||||
response: Response;
|
response: Response;
|
||||||
json: unknown;
|
json: unknown;
|
||||||
constructor(
|
constructor(
|
||||||
{ response, message }: {
|
{ response, json, message }: {
|
||||||
response: Response;
|
response: Response;
|
||||||
json?: unknown;
|
json?: unknown;
|
||||||
message?: string;
|
message?: string;
|
||||||
|
|
@ -10,5 +10,6 @@ export class APIError extends Error {
|
||||||
) {
|
) {
|
||||||
super(message);
|
super(message);
|
||||||
this.response = response;
|
this.response = response;
|
||||||
|
this.json = json;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue