From af17585465113def637f03262181a46d6b6b9dd8 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 7 Nov 2017 21:33:42 +0100 Subject: Improve error about unsupported annotation key --- askama_shared/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } } } -- cgit