fix render error position in templates

This commit is contained in:
Lars Berscheid
2020-06-30 08:51:13 +02:00
parent c4d99c9455
commit bb613e29ba
5 changed files with 35 additions and 41 deletions

View File

@@ -79,6 +79,6 @@ TEST_CASE("include-without-local-files") {
env.set_search_included_templates_in_files(false);
SUBCASE("html") {
CHECK_THROWS_WITH(env.render_file_with_json_file("html/template.txt", "html/data.json"), "[inja.exception.render_error] (at 21:1) include '../test/data/html/header.txt' not found");
CHECK_THROWS_WITH(env.render_file_with_json_file("html/template.txt", "html/data.json"), "[inja.exception.render_error] (at 3:14) include '../test/data/html/header.txt' not found");
}
}