!1079 not routing page @Entry @Preview error message revise

Merge pull request !1079 from Bo Jiang/cherry-pick-1662463542
This commit is contained in:
openharmony_ci
2022-09-07 01:54:08 +00:00
committed by Gitee
+1 -1
View File
@@ -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
});