Add more context in error messages

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-05-18 00:14:34 +02:00
parent f540a317b0
commit b808658648

View file

@ -51,6 +51,7 @@ impl Tagable for Value {
fn get_tags(&self) -> Result<Vec<Tag>> {
self.read("tag.values")
.context(format_err!("Failed to read header at 'tag.values'"))
.map_err(Error::from)
.context(EM::EntryHeaderReadError)?
.map(|val| {