Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 45682:d2e1dcd4490d
errors: name arguments to Abort constructor
Differential Revision: https://phab.mercurial-scm.org/D9179
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 08 Oct 2020 13:37:31 -0700 |
parents | 4aa484efc926 |
children | 89a2afe31e82 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Thu Oct 08 15:35:44 2020 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Thu Oct 08 13:37:31 2020 -0700 @@ -493,7 +493,7 @@ except error.Abort as e: res.status = b'403 Forbidden' res.headers[b'Content-Type'] = ctype - return rctx.sendtemplate(b'error', error=pycompat.bytestr(e)) + return rctx.sendtemplate(b'error', error=e.message) except ErrorResponse as e: for k, v in e.headers: res.headers[k] = v