Mercurial > hg > uploader
diff uploader/dispatcher.py @ 12:f60ad139acc1
better error message
author | egj@socialplanning.org |
---|---|
date | Tue, 02 Feb 2010 17:58:00 +0000 |
parents | d2990750e5d6 |
children | 657e8df14187 |
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'