diff options
Diffstat (limited to 'lib/send.js')
| -rw-r--r-- | lib/send.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/send.js b/lib/send.js index 92b2eda3..293473d9 100644 --- a/lib/send.js +++ b/lib/send.js @@ -59,6 +59,7 @@ send = async (amount, memo, hash, user) => { fee_limit: { fixed: Math.min(10000, account.balance) }, }); + if (!m) throw new Error("lightning payment failed"); if (m.payment_error) throw new Error(m.payment_error); ({ |
