log content

This commit is contained in:
2023-10-20 22:46:48 +08:00
parent 2dbcab998f
commit ee3321c7e8
2 changed files with 6 additions and 6 deletions

View File

@@ -67,9 +67,9 @@ exports.getGlobalConfig = function () {
var globalConfig = fs.readFileSync("global.json");
} catch (e) {
if (e.toString().includes("Error: ENOENT: no such file or directory")) {
log.error(`读取配置失败!找不到全局配置文件`);
log.error(`读取配置失败找不到全局配置文件`);
} else {
log.error(`读取配置失败!错误信息:${e}`);
log.error(`读取配置失败错误信息:${e}`);
}
exit();
}
@@ -84,9 +84,9 @@ exports.getConfigs = function () {
if (
e == "Error: ENOENT: no such file or directory, scandir 'configs'"
) {
log.error(`读取配置失败!找不到configs文件夹`);
log.error(`读取配置失败找不到configs文件夹`);
} else {
log.error(`读取配置失败!错误信息:${e}`);
log.error(`读取配置失败错误信息:${e}`);
}
exit();
}