From 9121593ab89adcad4fb6cfeb67761fae9ffead62 Mon Sep 17 00:00:00 2001 From: Yenan Date: Tue, 12 Aug 2025 16:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmain=5Fpage.json=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF=E8=B7=AF=E5=BE=84=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yenan --- compiler/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main.js b/compiler/main.js index 20bfe3e92..c29afa14c 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -192,7 +192,8 @@ function loadEntryObj(projectConfig) { // Collect the file paths in main_pages.json setEntryArrayForObf(sourcePath); } else { - throw Error(`\u001b[31m ERROR: page '${fileName.replace(/\\/g, '/')}' does not exist. \u001b[39m`) + throw Error('\u001b[31m10906403 ArkTS Compiler Error' + '\n' + + 'Error Message: ' + `Page '${fileName.replace(/\\/g, '/')}' does not exist. \u001b[39m`) .message; } }); -- Gitee