From b8086586484bc9ee4251e9097e7a24653d15658f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 18 May 2019 00:14:34 +0200 Subject: [PATCH] Add more context in error messages Signed-off-by: Matthias Beyer --- lib/entry/libimagentrytag/src/tagable.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/entry/libimagentrytag/src/tagable.rs b/lib/entry/libimagentrytag/src/tagable.rs index 6ff5e4cc..196b3f0d 100644 --- a/lib/entry/libimagentrytag/src/tagable.rs +++ b/lib/entry/libimagentrytag/src/tagable.rs @@ -51,6 +51,7 @@ impl Tagable for Value { fn get_tags(&self) -> Result> { self.read("tag.values") + .context(format_err!("Failed to read header at 'tag.values'")) .map_err(Error::from) .context(EM::EntryHeaderReadError)? .map(|val| {