diff dogdish/dispatcher.py @ 16:31898fb3b7d9

better error message
author jhammel
date Fri, 26 Oct 2012 14:46:28 +0000
parents fc5b842de4e9
children 427a94428f04
line wrap: on
line diff
--- a/dogdish/dispatcher.py	Wed Oct 17 14:59:49 2012 -0700
+++ b/dogdish/dispatcher.py	Fri Oct 26 14:46:28 2012 +0000
@@ -166,7 +166,7 @@
 
         # scan directory
         self.scan()
-        assert self.current_update # ensure there is at least one update
+        assert self.current_update, "No updates found in %s" % self.directory
 
     def __call__(self, environ, start_response):
         """WSGI application"""