Introduce Error exception to do i18n

This commit is contained in:
Matthieu Gautier
2022-04-21 15:41:14 +02:00
parent c72132054d
commit f0065fdd6f
4 changed files with 39 additions and 13 deletions

View File

@ -919,7 +919,7 @@ TEST_F(ServerTest, 400WithBodyTesting)
The requested URL "/ROOT/search?content=non-existing-book&pattern=asdfqwerty" is not a valid request.
</p>
<p>
The requested book doesn't exist.
No such book: non-existing-book
</p>
)" },
{ /* url */ "/ROOT/search?content=non-existing-book&pattern=a\"<script foo>",
@ -929,7 +929,7 @@ TEST_F(ServerTest, 400WithBodyTesting)
The requested URL "/ROOT/search?content=non-existing-book&pattern=a"&lt;script foo&gt;" is not a valid request.
</p>
<p>
The requested book doesn't exist.
No such book: non-existing-book
</p>
)" },
// There is a flaw in our way to handle query string, we cannot differenciate