From d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 2 Aug 2023 10:18:21 +0200 Subject: parser: better error message for unknown nodes --- askama_parser/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_parser/src/tests.rs') diff --git a/askama_parser/src/tests.rs b/askama_parser/src/tests.rs index 9cafaf0..ce300d3 100644 --- a/askama_parser/src/tests.rs +++ b/askama_parser/src/tests.rs @@ -702,7 +702,7 @@ fn test_missing_space_after_kw() { let err = Ast::from_str("{%leta=b%}", &syntax).unwrap_err(); assert!(matches!( &*err.to_string(), - "unable to parse template:\n\n\"{%leta=b%}\"" + "problems parsing template source at row 1, column 0 near:\n\"{%leta=b%}\"", )); } -- cgit