comparison mercurial/hgweb/hgwebdir_mod.py @ 7740:176d3d681702

hgweb: pass ErrorResponses directly into req.respond()
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 09 Feb 2009 11:29:09 +0100
parents 1d54e2f6c0b7
children de377b1a9a84 6796d41be421
comparison
equal deleted inserted replaced
7739:edcb56991afe 7740:176d3d681702
166 # prefixes not found 166 # prefixes not found
167 req.respond(HTTP_NOT_FOUND, ctype) 167 req.respond(HTTP_NOT_FOUND, ctype)
168 return tmpl("notfound", repo=virtual) 168 return tmpl("notfound", repo=virtual)
169 169
170 except ErrorResponse, err: 170 except ErrorResponse, err:
171 req.respond(err.code, ctype) 171 req.respond(err, ctype)
172 return tmpl('error', error=err.message or '') 172 return tmpl('error', error=err.message or '')
173 finally: 173 finally:
174 tmpl = None 174 tmpl = None
175 175
176 def makeindex(self, req, tmpl, subdir=""): 176 def makeindex(self, req, tmpl, subdir=""):