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(); }