diff options
author | Steven Knight <knight@baldmt.com> | 2002-01-23 22:59:58 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-01-23 22:59:58 (GMT) |
commit | 315a82d5e0154f6ed33b6848c454c3df61460ea1 (patch) | |
tree | 276a3173660b7626ea7dd446a9aba014a81f2afa /src/engine/SCons/Script | |
parent | 1f0c49dc905310ce09cc790ba2d2b438d07fd846 (diff) | |
download | SCons-315a82d5e0154f6ed33b6848c454c3df61460ea1.zip SCons-315a82d5e0154f6ed33b6848c454c3df61460ea1.tar.gz SCons-315a82d5e0154f6ed33b6848c454c3df61460ea1.tar.bz2 |
Provide a traceback if a Python-function builder throws an exception (Crain).
Diffstat (limited to 'src/engine/SCons/Script')
-rw-r--r-- | src/engine/SCons/Script/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 1788fab..acbd6c0 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -76,6 +76,9 @@ class BuildTask(SCons.Taskmaster.Task): self.target.build() except BuildError, e: sys.stderr.write("scons: *** [%s] %s\n" % (e.node, e.errstr)) + if e.errstr == 'Exception': + traceback.print_exception(e.args[0], e.args[1], + e.args[2]) raise def executed(self): |