D6840: hgweb: add a `message` attribute to `hgweb.common.ErrorResponse`

sheehan (Connor Sheehan) phabricator at mercurial-scm.org
Tue Sep 10 16:13:09 EDT 2019


sheehan added a comment.


  The error I mentioned looks like this:
  
    Traceback (most recent call last):
      File "/var/hg/venv_hgweb/lib64/python3.6/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 358, in run_wsgi
        for r in self._runwsgi(req, res):
      File "/var/hg/venv_hgweb/lib64/python3.6/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 463, in _runwsgi
        res.setbodygen(tmpl.generate('error', {'error': e.message or ''}))
    AttributeError: 'ErrorResponse' object has no attribute 'message'

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6840/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6840

To: sheehan, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list