From 5e7149f79eeb9988a7da45ecc8573c65e9680082 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Sep 2020 15:52:13 +0530 Subject: fix exception thrown during logging, include stack trace --- packages/taler-wallet-core/src/operations/errors.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/errors.ts b/packages/taler-wallet-core/src/operations/errors.ts index 198d3f8c5..76f640344 100644 --- a/packages/taler-wallet-core/src/operations/errors.ts +++ b/packages/taler-wallet-core/src/operations/errors.ts @@ -96,7 +96,9 @@ export async function guardOperationException( const opErr = makeErrorDetails( TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, `unexpected exception (message: ${e.message})`, - {}, + { + stack: e.stack, + }, ); await onOpError(opErr); throw new OperationFailedAndReportedError(opErr); -- cgit v1.2.3