Login error message update

Login error message update
This commit is contained in:
saubyk 2019-03-31 13:46:03 -04:00
parent bc1a2edc87
commit 92b1cc9f7c

View File

@ -63,9 +63,9 @@ exports.authenticateUser = (req, res, next) => {
fs.readFile(common.lnd_config_path, 'utf8', function (err, data) {
if (err) {
logger.error('\r\nAuthenticate: 45: ' + JSON.stringify(Date.now()) + ': ERROR: LND Config Reading Failed!');
err.description = 'You might be connecting RTL remotely to your LND node OR You might be missing rpcpass in your lnd.conf.\n';
err.description = err.description + 'If the former, modify the RTL.conf for remote setting\n';
err.description = err.description + 'If the later, modify the lnd.conf to include rpcpass';
err.description = 'You might be connecting RTL remotely to your LND node OR You might be missing rpcpass in your lnd.conf.';
err.description = err.description + ' If the former modify the RTL.conf for remote setting.';
err.description = err.description + ' If the later modify the lnd.conf to include rpcpass';
res.status(500).json({
message: "LND Config Reading Failed!",
error: err