Skip to content

Commit

Permalink
BaseTools: trim warning to error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Bob Feng <[email protected]>
Signed-off-by: Yuwei Chen <[email protected]>
Reviewed-by: Rebecca Cran <[email protected]>
  • Loading branch information
YuweiChen1110 authored and mergify[bot] committed Oct 18, 2023
1 parent 7fe4988 commit b75d9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseTools/Source/Python/Trim/Trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []


Expand Down

0 comments on commit b75d9f5

Please sign in to comment.