Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 429c0dfeb652462a733a75348c3470179dfe045d
parent 5fa28ae9d2c5c3bd16363e7fc28cc57dc36e8963
Author: Sergio Benitez <sb@sergio.bz>
Date:   Wed, 15 Aug 2018 19:00:38 -0700

Fix template fairing given 'ConfigError::Missing'.

Diffstat:
Mcontrib/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 @@ -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);