From 0939fda93cbc252cd5b4ed4f026ed6ec9e07687f Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Mon, 26 Feb 2018 15:15:02 +0800 Subject: [PATCH] BaseTools: Add more error message when PcdValue is wrong For structure PCD, its field name is wrong and cause build failure. Its build error message will output to let user aware what's wrong. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Feng Bob C Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Workspace/DscBuildData.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 75b877a5aa..f90da8e501 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -1944,6 +1944,8 @@ class DscBuildData(PlatformBuildClassObject): message_itmes = Message.split(":") Index = 0 if "PcdValueInit.c" not in Message: + if not MessageGroup: + MessageGroup.append(Message) break else: for item in message_itmes: -- 2.39.2