commit cd7b8473b92e961bbb3f43f0c4d37e05a4ff9e4d
parent 6f60f50ec9ac91728accb93bca54195e59c57874
Author: Florian Dold <florian@dold.me>
Date: Thu, 19 Feb 2026 22:23:52 +0100
-more logging
Diffstat:
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
@@ -990,9 +990,13 @@ async function handleSetWalletRunConfig(
});
});
} catch (e) {
- logger.error("error writing to database during initialization");
+ logger.error(
+ "error writing to database during initialization (while writing last error info)",
+ );
+ const err = getErrorDetailFromException(e);
+ logger.error(`details: ${j2s(err)}`);
throw TalerError.fromDetail(TalerErrorCode.WALLET_DB_UNAVAILABLE, {
- innerError: getErrorDetailFromException(e),
+ innerError: err,
});
}
wex.ws.initWithConfig(applyRunConfigDefaults(req.config));
@@ -3394,9 +3398,13 @@ export class InternalWalletState {
});
}
} catch (e) {
- logger.error("error writing to database during initialization");
+ logger.error(
+ "error writing to database during initialization (during migration)",
+ );
+ const err = getErrorDetailFromException(e);
+ logger.error(`details: ${j2s(err)}`);
throw TalerError.fromDetail(TalerErrorCode.WALLET_DB_UNAVAILABLE, {
- innerError: getErrorDetailFromException(e),
+ innerError: err,
});
} finally {
this.loadingDb = false;