aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-embedded/src/wallet-qjs.ts15
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) {