webcommands: use stringutil.pprint() to repr invalid archive types
authorAugie Fackler <augie@google.com>
Sat, 13 Oct 2018 07:53:51 -0400
changeset 40248 b24c23f7c1f9
parent 40247 844deb408a5b
child 40249 c9e8c93e241c
webcommands: use stringutil.pprint() to repr invalid archive types Differential Revision: https://phab.mercurial-scm.org/D5074
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