Skip to content

Commit

Permalink
🐛 improved gocardless error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Nov 27, 2023
1 parent ca4ea97 commit c9a7dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-gocardless/app-gocardless.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ app.post(
case isAxiosError(error):
console.log(
'Something went wrong',
inspect(error.response.data, { depth: null }),
inspect(error.response?.data || error, { depth: null }),
);
sendErrorResponse({
error_type: 'SYNC_ERROR',
Expand Down

0 comments on commit c9a7dee

Please sign in to comment.