From a7d4cc0670511ffab181f59dd5196962e8f4f659 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 6 Oct 2018 14:12:10 +0200 Subject: Tweak error messages for language, consistency --- askama_shared/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index ab26646..7db62b5 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -52,7 +52,7 @@ impl<'a> Config<'a> { let name = raw_s.name; if let Some(_) = syntaxes.insert(name.to_string(), Syntax::from(raw_s)) { - panic!("named syntax \"{}\" already exist", name) + panic!("syntax \"{}\" is already defined", name) } } } @@ -61,7 +61,7 @@ impl<'a> Config<'a> { if syntaxes.contains_key(default_syntax) { default_syntax } else { - panic!("default syntax {} not exist", default_syntax) + panic!("default syntax \"{}\" not found", default_syntax) } } else { DEFAULT_SYNTAX_NAME -- cgit