diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2008-09-29 21:46:49 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2008-09-29 21:46:49 (GMT) |
commit | e86a0c1c6d7cb02ddca28ffd6fc1a945e5446d22 (patch) | |
tree | 20308388f72a6dcbe3dee0223821a8b3f31cee7d | |
parent | bc45f909c2103e505eef303179a1f931253e1c5b (diff) | |
download | SCons-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.py | 4 |
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 = [] |