diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-10-23 21:15:08 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-10-25 14:30:35 +0200 |
commit | c3281e353d8192e6425f903216eeb6ecf9dd39fc (patch) | |
tree | 3d4b2fb068ea5debd7fa3447890afd589420b75e /askama_parser/src/lib.rs | |
parent | 6dae920a451407913ab188fd507a2cfc2cd03018 (diff) | |
download | askama-c3281e353d8192e6425f903216eeb6ecf9dd39fc.tar.gz askama-c3281e353d8192e6425f903216eeb6ecf9dd39fc.tar.bz2 askama-c3281e353d8192e6425f903216eeb6ecf9dd39fc.zip |
Improve error for invalid name used in `endblock`
Diffstat (limited to 'askama_parser/src/lib.rs')
-rw-r--r-- | askama_parser/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs index ba5f6a4..5abc771 100644 --- a/askama_parser/src/lib.rs +++ b/askama_parser/src/lib.rs @@ -101,7 +101,7 @@ impl<'a> Ast<'a> { let msg = format!( "{}problems parsing template source at row {}, column {} near:\n{}", if let Some(message) = message { - format!("error: {message}\n") + format!("{message}\n") } else { String::new() }, |