summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-02-17 14:48:28 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-02-18 11:30:26 +0800
commit790f60f22efb829903b6d308decaa4b1506ab928 (patch)
tree719a673cc21384aee9d2dc20c5ca18892b5505e6 /BaseTools
parenta754c70ceec880038f0e61e413398e96468b34f1 (diff)
downloadedk2-790f60f22efb829903b6d308decaa4b1506ab928.tar.gz
edk2-790f60f22efb829903b6d308decaa4b1506ab928.tar.bz2
edk2-790f60f22efb829903b6d308decaa4b1506ab928.zip
BaseTools: report an error message when failed to start build command
when build.py was failing to build packages but was not providing any error message except for “Failed to start command.” this patch provide the error message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 3cd385d69d..5253cb48f9 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -2,7 +2,7 @@
# build a platform or a module
#
# Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
-# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -287,6 +287,7 @@ def LaunchCommand(Command, WorkingDir):
Proc.wait()
except: # in case of aborting
# terminate the threads redirecting the program output
+ EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())
if EndOfProcedure != None:
EndOfProcedure.set()
if Proc == None: