aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sersve.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sersve.rs b/src/sersve.rs
index 1d6e91c..a38a44a 100644
--- a/src/sersve.rs
+++ b/src/sersve.rs
@@ -196,7 +196,7 @@ fn main() {
matches.opt_str("c").map(|conf_file| {
let conf_file = File::open(&Path::new(conf_file));
- //conf_file.map_err(|e| panic!("{}", e.desc));
+ conf_file.as_ref().map_err::<()>(|e| panic!("{}", e.desc)).unwrap();
let json = match json::from_reader(&mut conf_file.ok().unwrap()) {
Ok(Json::Object(o)) => o,
_ => panic!("Invalid configuration file. Doesn't contain top-level object.")