Better error when taskmaster gets an exception while scanning children (show actual...
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 29 Sep 2008 21:46:49 +0000 (21:46 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 29 Sep 2008 21:46:49 +0000 (21:46 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3520 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Taskmaster.py

index 61bab21e6f9274f52571379484a775570035d9b0..f8c494d06df609fe26dabeb809640f3f0df7b1e1 100644 (file)
@@ -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 = []