changeset 40248:b24c23f7c1f9

webcommands: use stringutil.pprint() to repr invalid archive types Differential Revision: https://phab.mercurial-scm.org/D5074
author Augie Fackler <augie@google.com>
date Sat, 13 Oct 2018 07:53:51 -0400
parents 844deb408a5b
children c9e8c93e241c
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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