Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sat Feb 07 23:29:12 2009 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Mon Feb 09 11:29:09 2009 +0100 @@ -168,7 +168,7 @@ return tmpl("notfound", repo=virtual) except ErrorResponse, err: - req.respond(err.code, ctype) + req.respond(err, ctype) return tmpl('error', error=err.message or '') finally: tmpl = None