From 6381ad7775da9c435c8cc8718c7e29b1647cfd2a Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Tue, 12 Jul 2022 19:58:10 +0800 Subject: [PATCH] wangyongfei6@huawei.com modify errorfile path tip Signed-off-by: yfwang6 Change-Id: I4470f5c63cbffefba390368f7c3c23082fcd3114 --- compiler/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main.js b/compiler/main.js index aa58d3b..d02025e 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -102,7 +102,8 @@ function loadEntryObj(projectConfig) { if (fs.existsSync(fileName)) { projectConfig.entryObj['./' + sourcePath] = fileName + '?entry'; } else { - throw Error(`\u001b[31m ERROR: page '${fileName}' does not exist. \u001b[39m`).message; + const errorFileName = path.resolve(projectConfig.projectPath, sourcePath + '.ets'); + throw Error(`\u001b[31m ERROR: page '${errorFileName}' does not exist. \u001b[39m`).message; } }); } else {