Skip to content
Snippets Groups Projects
Unverified Commit 6bda5716 authored by syuilo's avatar syuilo
Browse files

Make some error logs important

parent d3c7129e
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ async function init(): Promise<Config> {
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<Config> {
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<Config> {
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment