mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-18 15:39:04 +00:00
Fix incorrect emission of config errors from templates.
This commit is contained in:
parent
0d2585051d
commit
f87b46d6c5
@ -164,11 +164,11 @@ impl Template {
|
||||
|
||||
match rocket.config().get_str("template_dir") {
|
||||
Ok(dir) => template_root = rocket.config().root_relative(dir),
|
||||
Err(e@ConfigError::NotFound) => {
|
||||
Err(ConfigError::NotFound) => { /* ignore missing configs */ }
|
||||
Err(e) => {
|
||||
e.pretty_print();
|
||||
warn_!("Using default directory '{:?}'", template_root);
|
||||
warn_!("Using default templates directory '{:?}'", template_root);
|
||||
}
|
||||
Err(_) => { }
|
||||
};
|
||||
|
||||
match Context::initialize(template_root) {
|
||||
|
Loading…
Reference in New Issue
Block a user