X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FTrim%2FTrim.py;h=776474b203491568214e3379a21b7d22e6590544;hp=c5638376e41a4cf88c269752ad398dfe38f85c8d;hb=cfd73e0065f523e1d56bb32b5c9d48e162c903f8;hpb=28dd887d68409c8788c858e29063ee599ebaaa91 diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py index c5638376e4..776474b203 100644 --- a/BaseTools/Source/Python/Trim/Trim.py +++ b/BaseTools/Source/Python/Trim/Trim.py @@ -281,9 +281,11 @@ def DoInclude(Source, Indent='', IncludePathList=[], LocalSearchPath=None, Inclu F = File.readlines() break else: - EdkLogger.error("Trim", "Failed to find include file %s" % Source) + EdkLogger.warn("Trim", "Failed to find include file %s" % Source) + return [] except: - EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source) + EdkLogger.warn("Trim", FILE_OPEN_FAILURE, ExtraData=Source) + return [] # avoid A "include" B and B "include" A