Mercurial > hg
diff tests/test-hgweb-json.t @ 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 | 5abc47d4ca6b |
line wrap: on
line diff
--- a/tests/test-hgweb-json.t Fri Sep 07 22:12:46 2018 +0900 +++ b/tests/test-hgweb-json.t Fri Sep 07 22:19:28 2018 +0900 @@ -2183,6 +2183,16 @@ "topic": "phases" } +Error page shouldn't crash + + $ request json-changeset/deadbeef + 404 Not Found + + { + "error": "unknown revision 'deadbeef'" + } + [1] + Commit message with Japanese Kanji 'Noh', which ends with '\x5c' $ echo foo >> da/foo