hgweb: generate error message only if nothing is passed
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 22 Jul 2008 18:21:37 +0200
changeset 6924 e8332c8108ff
parent 6923 ebf1462f2145
child 6925 87abfefafe02
hgweb: generate error message only if nothing is passed
mercurial/hgweb/common.py
--- a/mercurial/hgweb/common.py	Thu Aug 21 11:35:17 2008 +0200
+++ b/mercurial/hgweb/common.py	Tue Jul 22 18:21:37 2008 +0200
@@ -17,7 +17,7 @@
     def __init__(self, code, message=None):
         Exception.__init__(self)
         self.code = code
-        if message:
+        if message is not None:
             self.message = message
         else:
             self.message = _statusmessage(code)