mercurial/hgweb/hgweb_mod.py
changeset 7740 176d3d681702
parent 7637 1d54e2f6c0b7
child 7831 b5ed0ab8cc74
--- a/mercurial/hgweb/hgweb_mod.py	Sat Feb 07 23:29:12 2009 +0100
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Feb 09 11:29:09 2009 +0100
@@ -99,7 +99,7 @@
                 method = getattr(protocol, cmd)
                 return method(self.repo, req)
             except ErrorResponse, inst:
-                req.respond(inst.code, protocol.HGTYPE)
+                req.respond(inst, protocol.HGTYPE)
                 if not inst.message:
                     return []
                 return '0\n%s\n' % inst.message,
@@ -194,7 +194,7 @@
             req.respond(HTTP_SERVER_ERROR, ctype)
             return tmpl('error', error=str(inst))
         except ErrorResponse, inst:
-            req.respond(inst.code, ctype)
+            req.respond(inst, ctype)
             return tmpl('error', error=inst.message)
 
     def templater(self, req):