diff options
author | René Kijewski <rene.kijewski@fu-berlin.de> | 2023-08-02 10:18:21 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-02 11:09:05 +0200 |
commit | d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8 (patch) | |
tree | 21067c681c781415cdd315c83fe9ef1680f47a1e /askama_parser/src/tests.rs | |
parent | 04e585b9d26ff5976854176bce0ba2f6cb42c76c (diff) | |
download | askama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.tar.gz askama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.tar.bz2 askama-d09041bd0acc8d8fcd77e9cda14a8ab8a3b4dbc8.zip |
parser: better error message for unknown nodes
Diffstat (limited to 'askama_parser/src/tests.rs')
-rw-r--r-- | askama_parser/src/tests.rs | 2 |
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%}\"", )); } |