diff mercurial/templates/json/map @ 39469:1a786fe069b8

hgweb: add error template to json so it won't crash
author Yuya Nishihara <yuya@tcha.org>
date Fri, 07 Sep 2018 22:19:28 +0900
parents 6772cf74ff6f
children 6feaee05bac5
line wrap: on
line diff
--- a/mercurial/templates/json/map	Fri Sep 07 22:12:46 2018 +0900
+++ b/mercurial/templates/json/map	Fri Sep 07 22:19:28 2018 +0900
@@ -241,3 +241,6 @@
   "lastchange": {lastchange|json},
   "labels": {labels|json}
   }'
+error = '\{
+  "error": {error|utf8|json}
+  }'