From 6bda571660ce21e641cf8b9210917cc1d939e0ba Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 5 Feb 2019 06:46:01 +0900 Subject: [PATCH] Make some error logs important --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index af18977a2c..4e88ef3b4d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -157,7 +157,7 @@ async function init(): Promise { nodejsLogger.info(`Version ${runningNodejsVersion.join('.')}`); if (!satisfyNodejsVersion) { - nodejsLogger.error(`Node.js version is less than ${requiredNodejsVersion.join('.')}. Please upgrade it.`); + nodejsLogger.error(`Node.js version is less than ${requiredNodejsVersion.join('.')}. Please upgrade it.`, true); process.exit(1); } @@ -174,7 +174,7 @@ async function init(): Promise { process.exit(1); } if (exception.code === 'ENOENT') { - configLogger.error('Configuration file not found'); + configLogger.error('Configuration file not found', true); process.exit(1); } throw exception; @@ -183,12 +183,12 @@ async function init(): Promise { configLogger.succ('Loaded'); if (config.port == null) { - bootLogger.error('The port is not configured. Please configure port.'); + bootLogger.error('The port is not configured. Please configure port.', true); process.exit(1); } if (process.platform === 'linux' && isWellKnownPort(config.port) && !isRoot()) { - bootLogger.error('You need root privileges to listen on well-known port on Linux'); + bootLogger.error('You need root privileges to listen on well-known port on Linux', true); process.exit(1); }