# HG changeset patch # User Dirkjan Ochtman # Date 2008-07-22 16:21:37 # Node ID e8332c8108ff74fe1a49c898be816a880d40d7d0 # Parent ebf1462f214584b4da3a20a41ead0086325f915d hgweb: generate error message only if nothing is passed diff --git a/mercurial/hgweb/common.py b/mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py +++ b/mercurial/hgweb/common.py @@ -17,7 +17,7 @@ class ErrorResponse(Exception): 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)