mirror of https://github.com/rwf2/Rocket.git
Fix template fairing given 'ConfigError::Missing'.
This commit is contained in:
parent
5fa28ae9d2
commit
429c0dfeb6
|
@ -142,7 +142,7 @@ impl Fairing for TemplateFairing {
|
|||
let mut template_root = rocket.config().root_relative(DEFAULT_TEMPLATE_DIR);
|
||||
match rocket.config().get_str("template_dir") {
|
||||
Ok(dir) => template_root = rocket.config().root_relative(dir),
|
||||
Err(ConfigError::NotFound) => { /* ignore missing configs */ }
|
||||
Err(ConfigError::Missing(_)) => { /* ignore missing */ }
|
||||
Err(e) => {
|
||||
e.pretty_print();
|
||||
warn_!("Using default templates directory '{:?}'", template_root);
|
||||
|
|
Loading…
Reference in New Issue