diff --git a/lib/core/libimagrt/src/logger.rs b/lib/core/libimagrt/src/logger.rs index 3090fb3f..ef586bbb 100644 --- a/lib/core/libimagrt/src/logger.rs +++ b/lib/core/libimagrt/src/logger.rs @@ -370,6 +370,7 @@ fn aggregate_module_settings(_matches: &ArgMatches, config: Option<&Value>) for (module_name, v) in t { let destinations = inner_try! { v.read("destinations") + .context("Failed reading header 'destinations'") .map_err(Error::from) .context(EM::TomlQueryError)? .map(|val| { @@ -384,6 +385,7 @@ fn aggregate_module_settings(_matches: &ArgMatches, config: Option<&Value>) let level = inner_try! { v.read_string("level") + .context("Failed reading header 'level'") .map_err(Error::from) .context(EM::TomlQueryError)? .map(|s| match_log_level_str(&s)) diff --git a/lib/core/libimagrt/src/runtime.rs b/lib/core/libimagrt/src/runtime.rs index a4cba80f..58321938 100644 --- a/lib/core/libimagrt/src/runtime.rs +++ b/lib/core/libimagrt/src/runtime.rs @@ -408,6 +408,7 @@ impl<'a> Runtime<'a> { let mut buf = String::new(); lock.read_to_string(&mut buf) + .context("Failed to read stdin to buffer") .map_err(Error::from) .and_then(|_| { trace!("Got IDs = {}", buf);