aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/errors.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-13 15:28:34 +0200
committerFlorian Dold <florian@dold.me>2022-09-13 16:10:42 +0200
commit676ae5102b618e7e52ba289d453a470fe77ce9d5 (patch)
tree6d10f4fd3d04d653c8734cdebb5ab3472cd86fd5 /packages/taler-wallet-core/src/errors.ts
parent48540f62644b4c2e4e96095b11e202cb62e3e93d (diff)
fix test and logging
Diffstat (limited to 'packages/taler-wallet-core/src/errors.ts')
-rw-r--r--packages/taler-wallet-core/src/errors.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/errors.ts b/packages/taler-wallet-core/src/errors.ts
index 56017cc00..d56e936c0 100644
--- a/packages/taler-wallet-core/src/errors.ts
+++ b/packages/taler-wallet-core/src/errors.ts
@@ -102,7 +102,7 @@ export function summarizeTalerErrorDetail(ed: TalerErrorDetail): string {
export class TalerError<T = any> extends Error {
errorDetail: TalerErrorDetail & T;
private constructor(d: TalerErrorDetail & T) {
- super();
+ super(d.hint ?? `Error (code ${d.code})`);
this.errorDetail = d;
Object.setPrototypeOf(this, TalerError.prototype);
}