aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-07-08 22:21:02 -0700
committerAdam Soltys <[email protected]>2020-07-08 22:21:02 -0700
commit3c356a6adf859b20cd75f939e79f97cb005a93c4 (patch)
tree0cb2a037dce39efc460efc0f0d04a4c8c4d70fe7
parent6b00db46ec0f75d08c3fff77bcef45b9af891553 (diff)
downloadcoinos-server-3c356a6adf859b20cd75f939e79f97cb005a93c4.tar.gz
coinos-server-3c356a6adf859b20cd75f939e79f97cb005a93c4.zip
don't return before throwing
-rw-r--r--routes/lightning/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/lightning/send.js b/routes/lightning/send.js
index 60732425..9aa4ddaf 100644
--- a/routes/lightning/send.js
+++ b/routes/lightning/send.js
@@ -7,7 +7,7 @@ module.exports = async (req, res) => {
res.send(await send(amount, payreq, user));
} catch (e) {
l.error("problem sending lightning payment", user.username, e.message);
+ res.status(500).send(e.message);
throw new Error(e.message);
- return res.status(500).send(e.message);
}
};