diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -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