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-embedded/src/index.ts | |
parent | f8d12f7b0d4af1b1769b89e80c87f9c169678564 (diff) | |
download | wallet-core-5d23eb36354d07508a015531f298b3e261bbafce.tar.xz |
wallet: improve error handling and error codes
Diffstat (limited to 'packages/taler-wallet-embedded/src/index.ts')
-rw-r--r-- | packages/taler-wallet-embedded/src/index.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-wallet-embedded/src/index.ts b/packages/taler-wallet-embedded/src/index.ts index e01281bc3..64b12f63c 100644 --- a/packages/taler-wallet-embedded/src/index.ts +++ b/packages/taler-wallet-embedded/src/index.ts @@ -21,7 +21,6 @@ import { getDefaultNodeWallet, DefaultNodeWalletArgs, NodeHttpLib, - makeErrorDetails, handleWorkerError, handleWorkerMessage, HttpRequestLibrary, @@ -33,6 +32,7 @@ import { WALLET_EXCHANGE_PROTOCOL_VERSION, WALLET_MERCHANT_PROTOCOL_VERSION, Wallet, + getErrorDetailFromException, } from "@gnu-taler/taler-wallet-core"; import fs from "fs"; @@ -270,11 +270,7 @@ export function installNativeWalletListener(): void { type: "error", id, operation, - error: makeErrorDetails( - TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, - "unexpected exception", - {}, - ), + error: getErrorDetailFromException(e), }; sendNativeMessage(respMsg); return; |