summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-22 21:16:38 +0100
committerFlorian Dold <florian@dold.me>2022-03-22 21:16:38 +0100
commit5d23eb36354d07508a015531f298b3e261bbafce (patch)
treefae0d2599c94d88c9264bb63a301adb1706824c1 /packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts
parentf8d12f7b0d4af1b1769b89e80c87f9c169678564 (diff)
downloadwallet-core-5d23eb36354d07508a015531f298b3e261bbafce.tar.gz
wallet-core-5d23eb36354d07508a015531f298b3e261bbafce.tar.bz2
wallet-core-5d23eb36354d07508a015531f298b3e261bbafce.zip
wallet: improve error handling and error codes
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts
index 93c22af70..146603f3a 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-dbless.ts
@@ -26,9 +26,9 @@ import {
findDenomOrThrow,
generateReserveKeypair,
NodeHttpLib,
- OperationFailedError,
refreshCoin,
SynchronousCryptoWorkerFactory,
+ TalerError,
topupReserveWithDemobank,
withdrawCoin,
} from "@gnu-taler/taler-wallet-core";
@@ -95,9 +95,9 @@ export async function runWalletDblessTest(t: GlobalTestState) {
newDenoms: refreshDenoms,
});
} catch (e) {
- if (e instanceof OperationFailedError) {
+ if (e instanceof TalerError) {
console.log(e);
- console.log(j2s(e.operationError));
+ console.log(j2s(e.errorDetail));
} else {
console.log(e);
}