unify file separator of each system for error message

Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: I200f1a4417084790c752554226e0a6c53e1afe7f
This commit is contained in:
yfwang6
2022-08-01 17:11:17 +08:00
parent bf922a8fbd
commit a39dc24a96
+3 -2
View File
@@ -91,7 +91,7 @@ function loadEntryObj(projectConfig) {
process.env.compileMode = 'moduleJson';
buildManifest(manifest, projectConfig.aceModuleJsonPath);
} else {
throw Error('\u001b[31m ERROR: the manifest file ' + projectConfig.manifestFilePath +
throw Error('\u001b[31m ERROR: the manifest file ' + projectConfig.manifestFilePath.replace(/\\/g, '/') +
' or module.json is lost or format is invalid. \u001b[39m').message;
}
if (manifest.pages) {
@@ -107,7 +107,8 @@ function loadEntryObj(projectConfig) {
}
});
} else {
throw Error('\u001b[31m ERROR: missing pages attribute in ' + projectConfig.manifestFilePath +
throw Error('\u001b[31m ERROR: missing pages attribute in ' +
projectConfig.manifestFilePath.replace(/\\/g, '/') +
'. \u001b[39m').message;
}
}