diff options
author | Florian Dold <florian@dold.me> | 2023-02-23 20:13:35 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-23 20:13:43 +0100 |
commit | 3d1b1ec724dc198cf0a365127acc77d3a36bbb2c (patch) | |
tree | f6c89abfa1ea12f41c8cbc1a9ce31517bb9d27db | |
parent | f7c97f73bb0a3fca48e2e1c65950c3b73dd265c0 (diff) |
embedded: fix DB deletion status code check
-rw-r--r-- | packages/taler-wallet-embedded/src/wallet-qjs.ts | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index 9d6a6c097..18f867f2e 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -143,17 +143,8 @@ class NativeWalletMessageHandler { this.walletArgs = { ...oldArgs }; if (oldArgs && oldArgs.persistentStoragePath) { const ret = qjsOs.remove(oldArgs.persistentStoragePath); - if (ret != null) { - return { - type: "error", - id, - operation, - error: { - code: TalerErrorCode.GENERIC_UNEXPECTED_REQUEST_ERROR, - hint: `path ${oldArgs.persistentStoragePath}`, - message: "removing DB file failed", - }, - }; + if (ret != 0) { + logger.error("removing DB file failed"); } // Prevent further storage! this.walletArgs.persistentStoragePath = undefined; @@ -200,7 +191,7 @@ export function installNativeWalletListener(): void { msg.args ?? {}, ); logger.info( - `native listener: sending success response for ${operation} (${id})`, + `native listener: sending ${respMsg.type} response for ${operation} (${id})`, ); sendNativeMessage(respMsg); } catch (e) { |