webcommands: use stringutil.pprint() to repr invalid archive types
Differential Revision: https://phab.mercurial-scm.org/D5074
--- 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