mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
unify file separator of each system for error message Signed-off-by: yfwang6 <wangyongfei6@huawei.com> Change-Id: I200f1a4417084790c752554226e0a6c53e1afe7f
This commit is contained in:
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user