fix render error position in templates

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

No files matched your search

+1 -1
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");
}
}