Debugging wallet status issue

This commit is contained in:
emad-salah 2019-12-08 18:35:45 +01:00
parent 709c99536a
commit 1896353ff3

View file

@ -221,9 +221,11 @@ module.exports = (
walletStatus: walletStatus ? availableService.walletStatus : null
})
} catch (err) {
logger.error(err);
const sanitizedMessage = sanitizeLNDError(err.message);
res.status(500).json({
walletStatus: sanitizeLNDError(err.message),
code: err.code
walletExists: null,
walletStatus: sanitizedMessage ? sanitizedMessage : "An unknown error has occurred, please try restarting your LND and API servers"
});
}
});