More error logging

This commit is contained in:
emad-salah 2019-12-01 23:03:56 +01:00
parent 53016c7a05
commit e318e46a54
2 changed files with 2 additions and 1 deletions

View file

@ -73,6 +73,7 @@ module.exports = async (protoPath, lndHost, lndCertPath, macaroonPath) => {
throw error;
}
} catch (err) {
logger.error(err);
if (err.code === 14) {
throw {
field: "unknown",

View file

@ -242,7 +242,7 @@ const server = program => {
// console.log('t', t.url);
// });
} catch (err) {
console.error(err);
logger.error(err);
logger.info("Restarting server in 30 seconds...");
await wait(30);
startServer();