diff -r edcb56991afe -r 176d3d681702 mercurial/hgweb/hgwebdir_mod.py --- 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