Mercurial > mozilla > hg > dogfood
comparison dogdish/dispatcher.py @ 16:31898fb3b7d9
better error message
author | jhammel |
---|---|
date | Fri, 26 Oct 2012 14:46:28 +0000 |
parents | fc5b842de4e9 |
children | 427a94428f04 |
comparison
equal
deleted
inserted
replaced
15:fc5b842de4e9 | 16:31898fb3b7d9 |
---|---|
164 self.updates = {} | 164 self.updates = {} |
165 self.current_update = None | 165 self.current_update = None |
166 | 166 |
167 # scan directory | 167 # scan directory |
168 self.scan() | 168 self.scan() |
169 assert self.current_update # ensure there is at least one update | 169 assert self.current_update, "No updates found in %s" % self.directory |
170 | 170 |
171 def __call__(self, environ, start_response): | 171 def __call__(self, environ, start_response): |
172 """WSGI application""" | 172 """WSGI application""" |
173 | 173 |
174 request = Request(environ) | 174 request = Request(environ) |