aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared')
-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