diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-11-07 21:33:42 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-11-07 21:33:43 +0100 |
commit | af17585465113def637f03262181a46d6b6b9dd8 (patch) | |
tree | f26013ae3260cd09d862bbe4c08a34af0c6d5538 /askama_shared | |
parent | 2257afd356e6985244e702554aeda74af63b7ff1 (diff) | |
download | askama-af17585465113def637f03262181a46d6b6b9dd8.tar.gz askama-af17585465113def637f03262181a46d6b6b9dd8.tar.bz2 askama-af17585465113def637f03262181a46d6b6b9dd8.zip |
Improve error about unsupported annotation key
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/input.rs b/askama_shared/src/input.rs index f71f8d0..bbff4b4 100644 --- a/askama_shared/src/input.rs +++ b/askama_shared/src/input.rs @@ -92,7 +92,7 @@ impl<'a> TemplateMeta<'a> { } else { panic!("ext value must be string literal"); }, - _ => { panic!("unsupported annotation key found") } + attr @ _ => { panic!("unsupported annotation key '{}' found", attr) } } } } |