mirror of https://github.com/acidanthera/audk.git
BaseTools: Fix the RaiseError variable issue caused by 855698fb69
The bug is that it cause the RaiseError always be set to TRUE even we call the function with FALSE parameter. Cc: Hess Chen <hesheng.chen@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Hess Chen <hesheng.chen@intel.com>
This commit is contained in:
parent
4c0d19e5bf
commit
4423f0bc61
|
@ -198,8 +198,8 @@ def error(ToolName, ErrorCode, Message=None, File=None, Line=None, ExtraData=Non
|
|||
LogText = _ErrorMessageTemplateWithoutFile % TemplateDict
|
||||
|
||||
_ErrorLogger.log(ERROR, LogText)
|
||||
RaiseError = IsRaiseError
|
||||
if RaiseError:
|
||||
|
||||
if RaiseError and IsRaiseError:
|
||||
raise FatalError(ErrorCode)
|
||||
|
||||
# Log information which should be always put out
|
||||
|
|
Loading…
Reference in New Issue