aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-18 20:14:32 +0000
committerAdam Soltys <[email protected]>2021-08-18 20:14:32 +0000
commit56459025774a80fc66d56841fcdabd8cd214ba21 (patch)
tree6571b104f7783a3e704bea5d1e0fe631378ed820 /lib
parentf2dad8ba2a169d9db1ced652c4ebee407b3c6609 (diff)
parentd4bdd2e4bdfaeed38fb6007b337b32d494b3997c (diff)
downloadcoinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.tar.gz
coinos-server-56459025774a80fc66d56841fcdabd8cd214ba21.zip
Merge branch 'master' of https://github.com/coinos/coinos-server
Diffstat (limited to 'lib')
-rw-r--r--lib/send.js1
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);
({