diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:09:54 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:09:54 -0300 |
commit | 8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b (patch) | |
tree | cef85adaff404ecf3ad9ed823c216776bb2871e4 /packages/taler-wallet-core/src/operations/pay-merchant.ts | |
parent | efb5bf9de465be29de06c30c9e8cd78374b7c118 (diff) | |
download | wallet-core-8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b.tar.xz |
add 'when' to error-detail and remove error as normal response when doing backup
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index 6026e0860..570a50c47 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1824,6 +1824,7 @@ export async function processPurchase( errorDetail: { // FIXME: allocate more specific error code code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, + when: new Date().toISOString(), hint: `trying to pay for purchase that is not in the database`, proposalId: proposalId, }, @@ -1874,6 +1875,7 @@ export async function processPurchasePay( errorDetail: { // FIXME: allocate more specific error code code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, + when: new Date().toISOString(), hint: `trying to pay for purchase that is not in the database`, proposalId: proposalId, }, @@ -1996,6 +1998,7 @@ export async function processPurchasePay( await scheduleRetry(ws, RetryTags.forPay(purchase), { code: TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, + when: new Date().toISOString(), message: "unexpected exception", hint: "unexpected exception", details: { |