* [Patch] BaseTools: Fix the RaiseError variable issue caused by 855698fb69f
@ 2018-09-05 3:27 Yonghong Zhu
2018-09-12 4:24 ` Chen, Hesheng
0 siblings, 1 reply; 2+ messages in thread
From: Yonghong Zhu @ 2018-09-05 3:27 UTC (permalink / raw)
To: edk2-devel; +Cc: Hess Chen, Liming Gao
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>
---
BaseTools/Source/Python/Common/EdkLogger.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/BaseTools/Source/Python/Common/EdkLogger.py b/BaseTools/Source/Python/Common/EdkLogger.py
index 80697bf..af77074 100644
--- a/BaseTools/Source/Python/Common/EdkLogger.py
+++ b/BaseTools/Source/Python/Common/EdkLogger.py
@@ -196,12 +196,12 @@ def error(ToolName, ErrorCode, Message=None, File=None, Line=None, ExtraData=Non
LogText = _ErrorMessageTemplate % TemplateDict
else:
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
quiet = _ErrorLogger.error
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Patch] BaseTools: Fix the RaiseError variable issue caused by 855698fb69f
2018-09-05 3:27 [Patch] BaseTools: Fix the RaiseError variable issue caused by 855698fb69f Yonghong Zhu
@ 2018-09-12 4:24 ` Chen, Hesheng
0 siblings, 0 replies; 2+ messages in thread
From: Chen, Hesheng @ 2018-09-12 4:24 UTC (permalink / raw)
To: Zhu, Yonghong, edk2-devel@lists.01.org; +Cc: Gao, Liming
Reviewed-by: Hess Chen <hesheng.chen@intel.com>
Chen, Hess
Intel China Software Center
Tel: +86-21-6116-6740
Email: hesheng.chen@intel.com
-----Original Message-----
From: Zhu, Yonghong
Sent: Wednesday, September 5, 2018 11:27 AM
To: edk2-devel@lists.01.org
Cc: Chen, Hesheng <hesheng.chen@intel.com>; Gao, Liming <liming.gao@intel.com>
Subject: [Patch] BaseTools: Fix the RaiseError variable issue caused by 855698fb69f
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>
---
BaseTools/Source/Python/Common/EdkLogger.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/BaseTools/Source/Python/Common/EdkLogger.py b/BaseTools/Source/Python/Common/EdkLogger.py
index 80697bf..af77074 100644
--- a/BaseTools/Source/Python/Common/EdkLogger.py
+++ b/BaseTools/Source/Python/Common/EdkLogger.py
@@ -196,12 +196,12 @@ def error(ToolName, ErrorCode, Message=None, File=None, Line=None, ExtraData=Non
LogText = _ErrorMessageTemplate % TemplateDict
else:
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
quiet = _ErrorLogger.error
--
2.6.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-12 4:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-05 3:27 [Patch] BaseTools: Fix the RaiseError variable issue caused by 855698fb69f Yonghong Zhu
2018-09-12 4:24 ` Chen, Hesheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox