aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-29 13:47:32 +0200
committerFlorian Dold <florian@dold.me>2022-03-29 13:48:51 +0200
commitc265e7d019d445add2d2cfb7cfcbdeee059684d3 (patch)
tree6904e9cdb723992728ed511103be65094ca50034 /packages/taler-util
parentbe489b6b3ea4214f546dfc33d6bb0f39ce82b5ab (diff)
wallet: make retries more robust and consistent
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/logging.ts8
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}`);
+ }
}