From b75d9f556d6f290a4037064a2b934f5a3396328c Mon Sep 17 00:00:00 2001 From: Yuwei Chen Date: Fri, 22 Sep 2023 14:47:08 +0800 Subject: BaseTools: trim warning to error As the error is changed to warning, Trim.py will skip the build error when the source code have exactly issue. This patch change warning to error to opens the checking. Cc: Rebecca Cran Cc: Liming Gao Cc: Bob Feng Signed-off-by: Yuwei Chen Reviewed-by: Rebecca Cran --- BaseTools/Source/Python/Trim/Trim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BaseTools/Source') diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py index c479f7d..416935d 100644 --- a/BaseTools/Source/Python/Trim/Trim.py +++ b/BaseTools/Source/Python/Trim/Trim.py @@ -281,10 +281,10 @@ def DoInclude(Source, Indent='', IncludePathList=[], LocalSearchPath=None, Inclu F = File.readlines() break else: - EdkLogger.warn("Trim", "Failed to find include file %s" % Source) + EdkLogger.error("Trim", "Failed to find include file %s" % Source) return [] except: - EdkLogger.warn("Trim", FILE_OPEN_FAILURE, ExtraData=Source) + EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source) return [] -- cgit v1.1