From 6550614c0c35299ac327b35b2cdc33a619b50ae5 Mon Sep 17 00:00:00 2001 From: bojiang Date: Mon, 5 Sep 2022 18:26:15 +0800 Subject: [PATCH] fixed faf07d4 from https://gitee.com/BoJiang4702/developtools_ace-ets2bundle/pulls/1064 jiangbo91@huawei.com Signed-off-by: bojiang Change-Id: I315f49d9fc81c453ff5e308b5bf90b5f5f03720e --- compiler/src/validate_ui_syntax.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/validate_ui_syntax.ts b/compiler/src/validate_ui_syntax.ts index 19a134e..82ca03e 100644 --- a/compiler/src/validate_ui_syntax.ts +++ b/compiler/src/validate_ui_syntax.ts @@ -216,7 +216,7 @@ function validateEntryAndPreviewCount(result: DecoratorResult, fileQuery: string fileQuery === '?entry') { log.push({ type: LogType.ERROR, - message: `A page configured in '${projectConfig.pagesJsonFileName}' must have one and only one '@Entry' ` + message: `A page which is being previewed must have one and only one '@Entry' ` + `decorator, or at least one '@Preview' decorator.`, fileName: fileName });