diff options
| author | Florian Dold <florian@dold.me> | 2022-03-22 21:16:38 +0100 |
|---|---|---|
| committer | Florian Dold <florian@dold.me> | 2022-03-22 21:16:38 +0100 |
| commit | 5d23eb36354d07508a015531f298b3e261bbafce (patch) | |
| tree | fae0d2599c94d88c9264bb63a301adb1706824c1 /packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts | |
| parent | f8d12f7b0d4af1b1769b89e80c87f9c169678564 (diff) | |
wallet: improve error handling and error codes
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts')
| -rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts b/packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts index 75d44d495..7e178077e 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-payment-transient.ts @@ -32,7 +32,7 @@ import { ConfirmPayResultType, PreparePayResultType, TalerErrorCode, - TalerErrorDetails, + TalerErrorDetail, URL, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; @@ -135,11 +135,9 @@ export async function runPaymentTransientTest(t: GlobalTestState) { } faultInjected = true; console.log("injecting pay fault"); - const err: TalerErrorDetails = { + const err: TalerErrorDetail = { code: TalerErrorCode.GENERIC_DB_COMMIT_FAILED, - details: {}, - hint: "huh", - message: "something went wrong", + hint: "something went wrong", }; ctx.responseBody = Buffer.from(JSON.stringify(err)); ctx.statusCode = 500; |
