From 429c0dfeb652462a733a75348c3470179dfe045d Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 15 Aug 2018 19:00:38 -0700 Subject: [PATCH] Fix template fairing given 'ConfigError::Missing'. --- contrib/lib/src/templates/fairing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lib/src/templates/fairing.rs b/contrib/lib/src/templates/fairing.rs index 79dbeb47..f43e353b 100644 --- a/contrib/lib/src/templates/fairing.rs +++ b/contrib/lib/src/templates/fairing.rs @@ -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);