Add a message to the UserError raised when trying to do a Dir lookup with create...
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 20 Dec 2009 16:04:13 +0000 (16:04 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 20 Dec 2009 16:04:13 +0000 (16:04 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4570 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Node/FS.py

index 9fdac794fb066ec2145a56c76301ddbe03317f5b..88248d748227a7440d4eba893dc0b4804c1cba3b 100644 (file)
@@ -2110,7 +2110,8 @@ class RootDir(Dir):
             result = self._lookupDict[k]
         except KeyError:
             if not create:
-                raise SCons.Errors.UserError
+                msg = "No such file or directory: '%s' in '%s' (and create is False)" % (p, str(self))
+                raise SCons.Errors.UserError, msg
             # There is no Node for this path name, and we're allowed
             # to create it.
             dir_name, file_name = os.path.split(p)