modify errorfile path tip

Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: I4470f5c63cbffefba390368f7c3c23082fcd3114
This commit is contained in:
yfwang6
2022-07-12 19:58:10 +08:00
parent bb4c52e24a
commit 6381ad7775
+2 -1
View File
@@ -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 {