From 7bb3f85f857f06ca629bedb0fbcc2835530e5b5c Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Mon, 1 Aug 2022 17:11:17 +0800 Subject: [PATCH] wangyongfei6@huawei.com unify file separator of each system for error message Signed-off-by: yfwang6 Change-Id: I200f1a4417084790c752554226e0a6c53e1afe7f --- compiler/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/main.js b/compiler/main.js index 727304a..6d20be4 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -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; } }