diff options
author | Feng, YunhuaX <yunhuax.feng@intel.com> | 2018-10-25 13:51:01 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-10-26 20:27:35 +0800 |
commit | b28d406b5a3b1506ce75fa71c74b489b68a2c11a (patch) | |
tree | 6be7902c055b5b3a3236a89b8096e61a0c741742 /BaseTools/Source/Python/Common | |
parent | e5001ab7a9c17fe1cf9155392c943a9c985c8a96 (diff) | |
download | edk2-b28d406b5a3b1506ce75fa71c74b489b68a2c11a.tar.gz edk2-b28d406b5a3b1506ce75fa71c74b489b68a2c11a.tar.bz2 edk2-b28d406b5a3b1506ce75fa71c74b489b68a2c11a.zip |
BaseTools: Fix BPDG tool print traceback info issue
Fix BPDG tool print traceback info issue
and remove abundant code
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common')
-rw-r--r-- | BaseTools/Source/Python/Common/VpdInfoFile.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/VpdInfoFile.py b/BaseTools/Source/Python/Common/VpdInfoFile.py index 0485bf482e..2fb8e66fe9 100644 --- a/BaseTools/Source/Python/Common/VpdInfoFile.py +++ b/BaseTools/Source/Python/Common/VpdInfoFile.py @@ -254,9 +254,8 @@ def CallExtenalBPDGTool(ToolPath, VpdFileName): PopenObject.wait()
if PopenObject.returncode != 0:
- if PopenObject.returncode != 0:
- EdkLogger.debug(EdkLogger.DEBUG_1, "Fail to call BPDG tool", str(error))
- EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, "Fail to execute BPDG tool with exit code: %d, the error message is: \n %s" % \
+ EdkLogger.debug(EdkLogger.DEBUG_1, "Fail to call BPDG tool", str(error))
+ EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, "Fail to execute BPDG tool with exit code: %d, the error message is: \n %s" % \
(PopenObject.returncode, str(error)))
return PopenObject.returncode
|