From 612abca271703508714e51e54e8145b3f003cdfd Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Tue, 9 Aug 2011 15:09:30 -0700
Subject: [PATCH] drop-upload: report the configured local directory being
 absent differently from it being a file refs #1429

---
 src/allmydata/frontends/drop_upload.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py
index c949b4d7..e8b1cdeb 100644
--- a/src/allmydata/frontends/drop_upload.py
+++ b/src/allmydata/frontends/drop_upload.py
@@ -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)
-- 
2.45.2