catch all errors
This commit is contained in:
parent
ed0d88f9ed
commit
529454bd08
1 changed files with 64 additions and 58 deletions
|
|
@ -640,6 +640,7 @@ module.exports = async (
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post("/api/lnd/wallet/existing", async (req, res) => {
|
app.post("/api/lnd/wallet/existing", async (req, res) => {
|
||||||
|
try {
|
||||||
const { password, alias } = req.body;
|
const { password, alias } = req.body;
|
||||||
const healthResponse = await checkHealth();
|
const healthResponse = await checkHealth();
|
||||||
const exists = await walletExists();
|
const exists = await walletExists();
|
||||||
|
|
@ -700,6 +701,11 @@ module.exports = async (
|
||||||
publicKey
|
publicKey
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} catch (err) {
|
||||||
|
return res.status(500).json({
|
||||||
|
errorMessage: err.message,
|
||||||
|
})
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// get lnd info
|
// get lnd info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue