diff options
author | Florian Dold <florian@dold.me> | 2022-03-29 13:47:32 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-29 13:48:51 +0200 |
commit | c265e7d019d445add2d2cfb7cfcbdeee059684d3 (patch) | |
tree | 6904e9cdb723992728ed511103be65094ca50034 /packages/taler-util | |
parent | be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab (diff) | |
download | wallet-core-c265e7d019d445add2d2cfb7cfcbdeee059684d3.tar.xz |
wallet: make retries more robust and consistent
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/logging.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-util/src/logging.ts b/packages/taler-util/src/logging.ts index ca7210eaa..840402d6f 100644 --- a/packages/taler-util/src/logging.ts +++ b/packages/taler-util/src/logging.ts @@ -205,4 +205,12 @@ export class Logger { ); } } + + reportBreak(): void { + if (!this.shouldLogError()) { + return; + } + const location = new Error("programming error"); + this.error(`assertion failed: ${location.stack}`); + } } |