mercurial/hgweb/hgweb_mod.py
changeset 26200 461e7b700fdf
parent 26183 bf1b24785f13
child 26205 18e1c555ee49
--- a/mercurial/hgweb/hgweb_mod.py	Fri Sep 04 05:57:58 2015 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Sep 08 14:56:29 2015 -0400
@@ -356,7 +356,7 @@
                 else:
                     req.headers.append(('Connection', 'Close'))
                 req.respond(inst, protocol.HGTYPE,
-                            body='0\n%s\n' % inst.message)
+                            body='0\n%s\n' % inst)
                 return ''
 
         # translate user-visible url structure to internal structure
@@ -439,7 +439,7 @@
             if inst.code == HTTP_NOT_MODIFIED:
                 # Not allowed to return a body on a 304
                 return ['']
-            return tmpl('error', error=inst.message)
+            return tmpl('error', error=str(inst))
 
     def check_perm(self, rctx, req, op):
         for permhook in permhooks: