# HG changeset patch # User Augie Fackler # Date 1539431631 14400 # Node ID b24c23f7c1f9e7071460c87dc849b12559545cb4 # Parent 844deb408a5b3c537cb41732637fe2955c338d96 webcommands: use stringutil.pprint() to repr invalid archive types Differential Revision: https://phab.mercurial-scm.org/D5074 diff -r 844deb408a5b -r b24c23f7c1f9 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sat Oct 13 07:51:22 2018 -0400 +++ b/mercurial/hgweb/webcommands.py Sat Oct 13 07:53:51 2018 -0400 @@ -1172,7 +1172,7 @@ key = web.req.qsparams['node'] if type_ not in webutil.archivespecs: - msg = 'Unsupported archive type: %s' % type_ + msg = 'Unsupported archive type: %s' % stringutil.pprint(type_) raise ErrorResponse(HTTP_NOT_FOUND, msg) if not ((type_ in allowed or