Better error when bad path specified
authorAaron Bentley <abentley@panoramicfeedback.com>
Thu, 15 Dec 2005 21:01:39 +0000 (16:01 -0500)
committerAaron Bentley <abentley@panoramicfeedback.com>
Thu, 15 Dec 2005 21:01:39 +0000 (16:01 -0500)
libbe/bugdir.py

index 20b6d9bb892dca7f8cc5f71e911f971c39667d07..0af4706d29a97643ff1344bbdda045fcf2f1ad51 100644 (file)
@@ -41,6 +41,8 @@ def tree_root(dir, old_version=False):
             break;
         elif rootdir == "/":
             raise NoBugDir(dir)
+        elif not os.path.exists(rootdir):
+            raise NoRootEntry(rootdir)
         rootdir=os.path.dirname(rootdir)
     return BugDir(os.path.join(rootdir, ".be"))