From: Liming Gao Date: Mon, 26 Feb 2018 07:15:02 +0000 (+0800) Subject: BaseTools: Add more error message when PcdValue is wrong X-Git-Tag: edk2-stable201903~2329 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=0939fda93cbc252cd5b4ed4f026ed6ec9e07687f;hp=006c2647dc60cd7e9d32c3555a3bf7cfd890ddd6 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 --- 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: