diff --git a/src/server/mod.rs b/src/server/mod.rs index c08342db..9639ce55 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -2,7 +2,7 @@ mod config; use std::path::PathBuf; -use tracing::info; +use tracing::{error, info}; use crate::filesystem::FileSystem; @@ -30,7 +30,14 @@ pub fn start(fs: FileSystem) { return; }; info!("Starting Server..."); - let _config = config::Config::load(&fs); + let config = match config::Config::load(&fs) { + Ok(config) => config, + Err(err) => { + error!("Failed to load config file. Error: {}", err); + return; + } + }; + info!("Config loaded"); // todo!() }