This commit is contained in:
syuilo
2022-09-24 06:45:44 +09:00
parent 174a8b1b3e
commit 417f52359d
21 changed files with 88 additions and 70 deletions

View File

@ -119,8 +119,7 @@ function loadConfigBoot(): Config {
if (typeof exception === 'string') {
configLogger.error(exception);
process.exit(1);
}
if (exception.code === 'ENOENT') {
} else if ((exception as any).code === 'ENOENT') {
configLogger.error('Configuration file not found', null, true);
process.exit(1);
}