diff options
author | Florian Dold <florian@dold.me> | 2024-04-22 23:42:29 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-22 23:42:29 +0200 |
commit | 548b979485ff5d01d99313933839f1e88523e4b3 (patch) | |
tree | eea974176aee94edaaec757c0f2887e63e2664d8 /packages/taler-wallet-core/src/shepherd.ts | |
parent | 00095769c8f047ddad204c14379839efbbc8640d (diff) | |
download | wallet-core-548b979485ff5d01d99313933839f1e88523e4b3.tar.xz |
wallet-core: avoid unresolved promise rejection
Diffstat (limited to 'packages/taler-wallet-core/src/shepherd.ts')
-rw-r--r-- | packages/taler-wallet-core/src/shepherd.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/shepherd.ts b/packages/taler-wallet-core/src/shepherd.ts index f512d53a4..62133d4b9 100644 --- a/packages/taler-wallet-core/src/shepherd.ts +++ b/packages/taler-wallet-core/src/shepherd.ts @@ -36,6 +36,7 @@ import { assertUnreachable, getErrorDetailFromException, j2s, + safeStringifyException, } from "@gnu-taler/taler-util"; import { processBackupForProvider } from "./backup/index.js"; import { @@ -231,7 +232,9 @@ export class TaskSchedulerImpl implements TaskScheduler { } startShepherdTask(taskId: TaskIdStr): void { - this.ensureRunning(); + this.ensureRunning().catch((e) => { + logger.error(`error running scheduler: ${safeStringifyException(e)}`); + }); // Run in the background, no await! this.internalStartShepherdTask(taskId); } |