Skip to content

Commit

Permalink
chore(processor): improve error message of status handlers
Browse files Browse the repository at this point in the history
chore(processor): improve error message of status handlers
  • Loading branch information
joey-koster-ct authored Jul 8, 2024
2 parents 846c71c + 8a84e00 commit 7ef3099
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions processor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@adyen/api-library": "17.3.0",
"@commercetools-backend/loggers": "22.29.0",
"@commercetools/connect-payments-sdk": "0.8.1",
"@commercetools/connect-payments-sdk": "0.8.2",
"@fastify/autoload": "5.10.0",
"@fastify/cors": "9.0.1",
"@fastify/formbody": "7.4.0",
Expand Down
3 changes: 1 addition & 2 deletions processor/src/services/adyen-payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ export class AdyenPaymentService extends AbstractPaymentService {
},
};
} catch (e) {
const errorMessage = e instanceof Error ? e.message : 'Failed to connect with Adyen';
return {
name: 'Adyen Status check',
status: 'DOWN',
message: errorMessage,
message: `Not able to talk to the Adyen API`,
details: {
error: e,
},
Expand Down

0 comments on commit 7ef3099

Please sign in to comment.