diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py index c479f7d2b2e7..416935df5e90 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 []