diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-01 15:52:13 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-01 15:52:13 +0530 |
commit | 5e7149f79eeb9988a7da45ecc8573c65e9680082 (patch) | |
tree | 892889ca8231d1a238de8264e0dbf96f349ff82f /packages/taler-wallet-core/src/operations | |
parent | 5c0ee81e26698293b1d9fc028a9080afb1779b60 (diff) | |
download | wallet-core-5e7149f79eeb9988a7da45ecc8573c65e9680082.tar.gz wallet-core-5e7149f79eeb9988a7da45ecc8573c65e9680082.tar.bz2 wallet-core-5e7149f79eeb9988a7da45ecc8573c65e9680082.zip |
fix exception thrown during logging, include stack trace
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/errors.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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<T>( const opErr = makeErrorDetails( TalerErrorCode.WALLET_UNEXPECTED_EXCEPTION, `unexpected exception (message: ${e.message})`, - {}, + { + stack: e.stack, + }, ); await onOpError(opErr); throw new OperationFailedAndReportedError(opErr); |