diff options
| author | Adam Soltys <[email protected]> | 2021-08-18 15:44:24 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-18 15:44:27 -0400 |
| commit | d4bdd2e4bdfaeed38fb6007b337b32d494b3997c (patch) | |
| tree | d4d83611cd48fff885da006c92fcc3b924e08727 | |
| parent | 76a16fcb4de1ccb351fbc45e85ac174fc0718c25 (diff) | |
| download | coinos-server-d4bdd2e4bdfaeed38fb6007b337b32d494b3997c.tar.gz coinos-server-d4bdd2e4bdfaeed38fb6007b337b32d494b3997c.zip | |
check for lightning message
| -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); ({ |
