summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2008-09-29 21:46:49 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2008-09-29 21:46:49 (GMT)
commite86a0c1c6d7cb02ddca28ffd6fc1a945e5446d22 (patch)
tree20308388f72a6dcbe3dee0223821a8b3f31cee7d
parentbc45f909c2103e505eef303179a1f931253e1c5b (diff)
downloadSCons-e86a0c1c6d7cb02ddca28ffd6fc1a945e5446d22.zip
SCons-e86a0c1c6d7cb02ddca28ffd6fc1a945e5446d22.tar.gz
SCons-e86a0c1c6d7cb02ddca28ffd6fc1a945e5446d22.tar.bz2
Better error when taskmaster gets an exception while scanning children (show actual exception string).
-rw-r--r--src/engine/SCons/Taskmaster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Taskmaster.py b/src/engine/SCons/Taskmaster.py
index 61bab21..f8c494d 100644
--- a/src/engine/SCons/Taskmaster.py
+++ b/src/engine/SCons/Taskmaster.py
@@ -595,14 +595,14 @@ class Taskmaster:
self.ready_exc = (SCons.Errors.ExplicitExit, e)
if T: T.write('Taskmaster: SystemExit\n')
return node
- except:
+ except Exception, e:
# We had a problem just trying to figure out the
# children (like a child couldn't be linked in to a
# VariantDir, or a Scanner threw something). Arrange to
# raise the exception when the Task is "executed."
self.ready_exc = sys.exc_info()
if S: S.problem = S.problem + 1
- if T: T.write('Taskmaster: exception while scanning children.\n')
+ if T: T.write('Taskmaster: exception %s while scanning children.\n'%s)
return node
children_not_visited = []