Skip to content

Commit

Permalink
🐛 improved gocardless error handling (actualbudget#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis authored and MMichotte committed Sep 9, 2024
1 parent 75f3bcc commit d1ed483
Show file tree
Hide file tree
Showing 2 changed files with 7 additions 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
6 changes: 6 additions & 0 deletions upcoming-release-notes/282.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [MatissJanis]
---

Improved error handling of GoCardless issues

0 comments on commit d1ed483

Please sign in to comment.