]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools:Fix build tools print traceback info issue
authorFan, ZhijuX <zhijux.fan@intel.com>
Fri, 20 Mar 2020 03:57:55 +0000 (11:57 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 24 Mar 2020 02:27:27 +0000 (02:27 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2610

We meet a case that the DEC file declaring the PCD isn't
included in the INF.it cause build tools report Traceback error.

Remove raise statements that generate Tracebacks that were only
intended for development/debug. With the raise statements removed
proper error messages are shown.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/AutoGenWorker.py

index 40b448f5b2db31cf7ee103cc4a12c6adea075202..563d91b421cef4df35372b851c0e9291f7c35f6c 100755 (executable)
@@ -256,7 +256,6 @@ class AutoGenWorkerInProcess(mp.Process):
                         CacheResult = Ma.CanSkipbyPreMakeCache()\r
                     except:\r
                         CacheResult = False\r
-                        traceback.print_exc(file=sys.stdout)\r
                         self.feedback_q.put(taskname)\r
 \r
                     if CacheResult:\r
@@ -273,7 +272,6 @@ class AutoGenWorkerInProcess(mp.Process):
                         CacheResult = Ma.CanSkipbyMakeCache()\r
                     except:\r
                         CacheResult = False\r
-                        traceback.print_exc(file=sys.stdout)\r
                         self.feedback_q.put(taskname)\r
 \r
                     if CacheResult:\r
@@ -285,7 +283,6 @@ class AutoGenWorkerInProcess(mp.Process):
         except Empty:\r
             pass\r
         except:\r
-            traceback.print_exc(file=sys.stdout)\r
             self.feedback_q.put(taskname)\r
         finally:\r
             self.feedback_q.put("Done")\r