diff mercurial/hgweb/request.py @ 9694:8269fe2d48f6

hgweb: send proper error messages to the client Fixes a bug in protocol which caused an exception during exception handling in some cases on Windows. Also makes sure the server error message is correctly propagated to the client, instead of being thrown away.
author Sune Foldager <cryo@cyanite.org>
date Mon, 02 Nov 2009 10:20:04 +0100
parents 46293a0c7e9f
children 5eae671c0b57
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Mon Nov 02 10:19:14 2009 +0100
+++ b/mercurial/hgweb/request.py	Mon Nov 02 10:20:04 2009 +0100
@@ -77,7 +77,7 @@
 
             if isinstance(status, ErrorResponse):
                 self.header(status.headers)
-                status = statusmessage(status.code)
+                status = statusmessage(status.code, status.message)
             elif status == 200:
                 status = '200 Script output follows'
             elif isinstance(status, int):