From b8b29864a1da0d9880ab5f8f29fbef14e522e82f Mon Sep 17 00:00:00 2001 From: garyo Date: Mon, 29 Sep 2008 21:46:49 +0000 Subject: [PATCH] Better error when taskmaster gets an exception while scanning children (show actual exception string). git-svn-id: http://scons.tigris.org/svn/scons/trunk@3520 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Taskmaster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Taskmaster.py b/src/engine/SCons/Taskmaster.py index 61bab21e..f8c494d0 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 = [] -- 2.26.2