changeset 12:f60ad139acc1

better error message
author egj@socialplanning.org
date Tue, 02 Feb 2010 17:58:00 +0000
parents 40b76777a880
children b8c636b0b567
files uploader/dispatcher.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/uploader/dispatcher.py	Sun Jan 10 18:44:58 2010 +0000
+++ b/uploader/dispatcher.py	Tue Feb 02 17:58:00 2010 +0000
@@ -18,7 +18,7 @@
     def __init__(self, **kw):
         for key in self.defaults:
             setattr(self, key, kw.get(key, self.defaults[key]))
-        assert os.path.exists(self.directory)
+        assert os.path.exists(self.directory), "The base directory %s does not exist; uploader needs it!" % self.directory
         if self.app:
             assert hasattr(self.app, '__call__')
         self.auth = self.auth.lower() == 'true'