diff options
| author | Adam Soltys <[email protected]> | 2020-02-12 10:08:26 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-02-12 10:08:26 -0800 |
| commit | 9fb58c7b2765646f95139c89e7339114a46a9948 (patch) | |
| tree | c2b96c0f154221365a8ea02c781d44b129d787a2 /sendLiquid.js | |
| parent | 3303c4e0e08d778a80a8592bf1339acdc0ca3b0a (diff) | |
| download | coinos-server-9fb58c7b2765646f95139c89e7339114a46a9948.tar.gz coinos-server-9fb58c7b2765646f95139c89e7339114a46a9948.zip | |
2fa
Diffstat (limited to 'sendLiquid.js')
| -rw-r--r-- | sendLiquid.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sendLiquid.js b/sendLiquid.js index 1a218afe..b9261493 100644 --- a/sendLiquid.js +++ b/sendLiquid.js @@ -30,6 +30,7 @@ module.exports = (app, db, emit) => async (req, res) => { fee = parseInt(fee * SATS); total = amount + fee; } catch (e) { + l("funding failed", e); return res.status(500).send(e.message); } @@ -52,7 +53,7 @@ module.exports = (app, db, emit) => async (req, res) => { await user.save({ transaction }); }); } catch (e) { - l(e); + l("balance check failed", e); return res.status(500).send("Not enough satoshis"); } @@ -87,7 +88,7 @@ module.exports = (app, db, emit) => async (req, res) => { res.send(payment); }); } catch (e) { - l(e); + l("send failed", e); return res.status(500).send(e.message); } }; |
