diff options
| author | Adam Soltys <[email protected]> | 2021-08-18 20:14:32 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-18 20:14:32 +0000 |
| commit | 56459025774a80fc66d56841fcdabd8cd214ba21 (patch) | |
| tree | 6571b104f7783a3e704bea5d1e0fe631378ed820 /lib/send.js | |
| parent | f2dad8ba2a169d9db1ced652c4ebee407b3c6609 (diff) | |
| parent | d4bdd2e4bdfaeed38fb6007b337b32d494b3997c (diff) | |
| download | coinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.tar.gz coinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.zip | |
Merge branch 'master' of https://github.com/coinos/coinos-server
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); ({ |
