diff options
| author | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-04-15 10:10:41 (GMT) |
|---|---|---|
| committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-04-15 10:10:41 (GMT) |
| commit | a343ecc4655243e840f5b0cf62073b0698bd0a60 (patch) | |
| tree | deb733dcc336dbff51f1da0eb5ebac2a5566ae9a /src/engine/SCons/Script | |
| parent | 90f3408e564e6f153511e6aaedebc98e44049ef9 (diff) | |
| download | SCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.zip SCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.tar.gz SCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.tar.bz2 | |
Per the bug report, this patch improves the "Do not know how to make
target X" to say what type of node is being built, and the full path (if
it's a file or dir).
Diffstat (limited to 'src/engine/SCons/Script')
| -rw-r--r-- | src/engine/SCons/Script/Main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py index fb9cbe5..f7ea9c0 100644 --- a/src/engine/SCons/Script/Main.py +++ b/src/engine/SCons/Script/Main.py @@ -207,7 +207,12 @@ class BuildTask(SCons.Taskmaster.OutOfDateTask): t = self.targets[0] if self.top and not t.has_builder() and not t.side_effect: if not t.exists(): - errstr="Do not know how to make target `%s'." % t + def classname(obj): + return string.split(str(obj.__class__), '.')[-1] + if classname(t) in ('File', 'Dir', 'Entry'): + errstr="Do not know how to make %s target `%s' (%s)." % (classname(t), t, t.abspath) + else: # Alias or Python or ... + errstr="Do not know how to make %s target `%s'." % (classname(t), t) sys.stderr.write("scons: *** " + errstr) if not self.options.keep_going: sys.stderr.write(" Stop.") |
