🐛 improved gocardless error handling (#282)

This commit is contained in:
Matiss Janis Aboltins
2023-12-01 17:49:27 +00:00
committed by GitHub
parent 4b12561905
commit dc47c6d72a
2 changed files with 7 additions and 1 deletions

View File

@@ -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',

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [MatissJanis]
---
Improved error handling of GoCardless issues