aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/tests.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <rene.kijewski@fu-berlin.de>2023-08-02 10:18:21 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-08-02 11:09:05 +0200
commitd09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8 (patch)
tree21067c681c781415cdd315c83fe9ef1680f47a1e /askama_parser/src/tests.rs
parent04e585b9d26ff5976854176bce0ba2f6cb42c76c (diff)
downloadaskama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.tar.gz
askama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.tar.bz2
askama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.zip
parser: better error message for unknown nodes
Diffstat (limited to '')
-rw-r--r--askama_parser/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
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%}\"",
));
}