##// END OF EJS Templates
hgweb: add error template to json so it won't crash
Yuya Nishihara -
r39505:1a786fe0 default
parent child Browse files
Show More
@@ -241,3 +241,6 b" indexentry = '\\{"
241 "lastchange": {lastchange|json},
241 "lastchange": {lastchange|json},
242 "labels": {labels|json}
242 "labels": {labels|json}
243 }'
243 }'
244 error = '\{
245 "error": {error|utf8|json}
246 }'
@@ -2183,6 +2183,16 b' help/{topic} shows an individual help to'
2183 "topic": "phases"
2183 "topic": "phases"
2184 }
2184 }
2185
2185
2186 Error page shouldn't crash
2187
2188 $ request json-changeset/deadbeef
2189 404 Not Found
2190
2191 {
2192 "error": "unknown revision 'deadbeef'"
2193 }
2194 [1]
2195
2186 Commit message with Japanese Kanji 'Noh', which ends with '\x5c'
2196 Commit message with Japanese Kanji 'Noh', which ends with '\x5c'
2187
2197
2188 $ echo foo >> da/foo
2198 $ echo foo >> da/foo
General Comments 0
You need to be logged in to leave comments. Login now