aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-10-06 14:12:10 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-10-07 07:37:46 +0200
commita7d4cc0670511ffab181f59dd5196962e8f4f659 (patch)
treec8343ee3ab98bca90f5496f92506b38d57af5cb7 /askama_shared
parenteb4f10b0f69c5417e574d51b57a4428712e6a2ad (diff)
downloadaskama-a7d4cc0670511ffab181f59dd5196962e8f4f659.tar.gz
askama-a7d4cc0670511ffab181f59dd5196962e8f4f659.tar.bz2
askama-a7d4cc0670511ffab181f59dd5196962e8f4f659.zip
Tweak error messages for language, consistency
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs4
1 files 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