From ddd086cd7eca20fbbc021e9916b47508b15fa46f Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Thu, 20 Oct 2022 21:49:41 +0800 Subject: [PATCH] fix: missing json --- APIError.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/APIError.ts b/APIError.ts index 7f71505..34101d3 100644 --- a/APIError.ts +++ b/APIError.ts @@ -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; } }