diff options
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 9336d69b0..f6a630e74 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -342,6 +342,10 @@ async function main() { console.log("payment status after wallet payment:", paymentStatus2); + if (!paymentStatus.paid) { + throw Error("payment did not succeed"); + } + myWallet.stop(); } |