summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-02 03:15:32 (GMT)
committerSteven Knight <knight@baldmt.com>2001-10-02 03:15:32 (GMT)
commit321aa365f5770b70be13631f717be8ecfeaf70f2 (patch)
tree683c28579fef2fe9a942693357dd5ca9a46e2514 /src/script
parent97446895b5e0d92057123a962f45856009ff6bb9 (diff)
downloadSCons-321aa365f5770b70be13631f717be8ecfeaf70f2.zip
SCons-321aa365f5770b70be13631f717be8ecfeaf70f2.tar.gz
SCons-321aa365f5770b70be13631f717be8ecfeaf70f2.tar.bz2
Handle build errors.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/script/scons.py b/src/script/scons.py
index fbb7341..e0e958b 100644
--- a/src/script/scons.py
+++ b/src/script/scons.py
@@ -32,7 +32,11 @@ class Task:
self.target = target
def execute(self):
- self.target.build()
+ try:
+ self.target.build()
+ except BuildError, e:
+ sys.stderr.write("scons: *** [%s] Error %d\n" % (e.node, e.stat))
+ raise
@@ -62,7 +66,7 @@ class Taskmaster:
pass
def failed(self, task):
- pass
+ self.num_iterated = len(self.targets)
# Global variables