diff options
| author | Adam Soltys <[email protected]> | 2020-07-08 22:21:02 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-07-08 22:21:02 -0700 |
| commit | 3c356a6adf859b20cd75f939e79f97cb005a93c4 (patch) | |
| tree | 0cb2a037dce39efc460efc0f0d04a4c8c4d70fe7 | |
| parent | 6b00db46ec0f75d08c3fff77bcef45b9af891553 (diff) | |
| download | coinos-server-3c356a6adf859b20cd75f939e79f97cb005a93c4.tar.gz coinos-server-3c356a6adf859b20cd75f939e79f97cb005a93c4.zip | |
don't return before throwing
| -rw-r--r-- | routes/lightning/send.js | 2 |
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); } }; |
