Skip to content

Commit

Permalink
fix: log response body on YiviApi error
Browse files Browse the repository at this point in the history
  • Loading branch information
marnixdessing committed Mar 31, 2023
1 parent 6c64705 commit 0f8bde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/code/YiviApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f8bde7

Please sign in to comment.