changeset 75:7db9d9b82a06

better error message
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 30 Dec 2012 19:59:27 -0800
parents dd7d385e11ea
children 1892ac35e9c8
files decoupage/web.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/web.py	Tue Aug 28 22:04:26 2012 -0700
+++ b/decoupage/web.py	Sun Dec 30 19:59:27 2012 -0800
@@ -44,7 +44,7 @@
         self.auto_reload = self.auto_reload.lower() == 'true'
         self.cascade = self.cascade.lower() == 'true'
         self.directory = self.directory.rstrip(os.path.sep)
-        assert os.path.isdir(self.directory)
+        assert os.path.isdir(self.directory), "'%s' is not a directory" % self.directory
         self.template_directories = self.template_directories.split() # no spaces in directory names, for now
 
         for directory in self.template_directories: