aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
};