]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
drop-upload: report the configured local directory being absent differently from...
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Aug 2011 22:09:30 +0000 (15:09 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Aug 2011 22:09:30 +0000 (15:09 -0700)
refs #1429

src/allmydata/frontends/drop_upload.py

index c949b4d77a2c1e6e0679a9b6d9603547576ae745..e8b1cdebdfdea268048d1489dd0e5ee0671db4a6 100644 (file)
@@ -36,8 +36,10 @@ class DropUploader(service.MultiService):
             from twisted.internet import inotify
         self._inotify = inotify
 
+        if not self._local_path.exists():
+            raise AssertionError("The '[drop_upload] local.directory' parameter was %s but there is no directory at that location." % quote_output(local_dir_u))
         if not self._local_path.isdir():
-            raise AssertionError("The drop-upload local path %r was not an existing directory." % quote_output(local_dir_u))
+            raise AssertionError("The '[drop_upload] local.directory' parameter was %s but the thing at that location is not a directory." % quote_output(local_dir_u))
 
         # TODO: allow a path rather than a cap URI.
         self._parent = self._client.create_node_from_uri(upload_dircap)