From 0f8bde7a29e5c0a28b621053bcc10324db2f7fcb Mon Sep 17 00:00:00 2001 From: Marnix Dessing Date: Fri, 31 Mar 2023 15:38:18 +0200 Subject: [PATCH] fix: log response body on YiviApi error --- src/app/code/YiviApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/code/YiviApi.ts b/src/app/code/YiviApi.ts index d838c9d3..3c8fc58b 100644 --- a/src/app/code/YiviApi.ts +++ b/src/app/code/YiviApi.ts @@ -90,7 +90,7 @@ export class YiviApi { } throw Error(errorMsg); } catch (error: any) { - console.error('Error while doing signed post request for endpoint', path); + console.error('Error while doing signed post request for endpoint:', path, error?.response?.data); console.timeEnd('request to ' + path); if (axios.isAxiosError(error)) { if (error.response) {