]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: report an error message when failed to start build command
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 17 Feb 2016 06:48:28 +0000 (14:48 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Thu, 18 Feb 2016 03:30:26 +0000 (11:30 +0800)
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>
BaseTools/Source/Python/build/build.py

index 3cd385d69d99829a7c0cffa205868c112003f1e9..5253cb48f95d7d166bfaab2c5f6230f8739e15ad 100644 (file)
@@ -2,7 +2,7 @@
 # build a platform or a module\r
 #\r
 #  Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>\r
 # build a platform or a module\r
 #\r
 #  Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>\r
-#  Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -287,6 +287,7 @@ def LaunchCommand(Command, WorkingDir):
         Proc.wait()\r
     except: # in case of aborting\r
         # terminate the threads redirecting the program output\r
         Proc.wait()\r
     except: # in case of aborting\r
         # terminate the threads redirecting the program output\r
+        EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())\r
         if EndOfProcedure != None:\r
             EndOfProcedure.set()\r
         if Proc == None:\r
         if EndOfProcedure != None:\r
             EndOfProcedure.set()\r
         if Proc == None:\r