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:
Yonghong Zhu 2018-09-05 11:26:15 +08:00
parent 4c0d19e5bf
commit 4423f0bc61
1 changed files with 2 additions and 2 deletions

View File

@ -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