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 walletStatus: walletStatus ? availableService.walletStatus : null
}) })
} catch (err) { } catch (err) {
logger.error(err);
const sanitizedMessage = sanitizeLNDError(err.message);
res.status(500).json({ res.status(500).json({
walletStatus: sanitizeLNDError(err.message), walletExists: null,
code: err.code walletStatus: sanitizedMessage ? sanitizedMessage : "An unknown error has occurred, please try restarting your LND and API servers"
}); });
} }
}); });