diff options
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 3b619f874..9cba1360e 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -113,6 +113,7 @@ import { } from "./operations/refund"; import { durationMin, Duration } from "./util/time"; import { processRecoupGroup } from "./operations/recoup"; +import { OperationFailedAndReportedError } from "./operations/errors"; const builtinCurrencies: CurrencyRecord[] = [ { @@ -235,7 +236,11 @@ export class Wallet { try { await this.processOnePendingOperation(p, forceNow); } catch (e) { - console.error(e); + if (e instanceof OperationFailedAndReportedError) { + console.error("Operation failed:", JSON.stringify(e.operationError, undefined, 2)); + } else { + console.error(e); + } } } } |