Print error while panicing

This commit is contained in:
Matthias Beyer 2017-06-03 14:43:02 +02:00
parent 2b7706424a
commit d3d6e830d7

View file

@ -310,9 +310,7 @@ impl<'a> Runtime<'a> {
debug!("Init logger with {}", lvl);
Box::new(ImagLogger::new(lvl.to_log_level().unwrap()).with_color(colored))
})
.map_err(|_| {
panic!("Could not setup logger");
})
.map_err(|e| panic!("Could not setup logger: {:?}", e))
.ok();
}
}