From d3d6e830d7faa47b73482c50ad29df018632d4dd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 3 Jun 2017 14:43:02 +0200 Subject: [PATCH] Print error while panicing --- libimagrt/src/runtime.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index 60ec08f3..e1c9a9d4 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -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(); } }