Add more context in error messages
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
f540a317b0
commit
b808658648
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ impl Tagable for Value {
|
||||||
|
|
||||||
fn get_tags(&self) -> Result<Vec<Tag>> {
|
fn get_tags(&self) -> Result<Vec<Tag>> {
|
||||||
self.read("tag.values")
|
self.read("tag.values")
|
||||||
|
.context(format_err!("Failed to read header at 'tag.values'"))
|
||||||
.map_err(Error::from)
|
.map_err(Error::from)
|
||||||
.context(EM::EntryHeaderReadError)?
|
.context(EM::EntryHeaderReadError)?
|
||||||
.map(|val| {
|
.map(|val| {
|
||||||
|
|
Loading…
Reference in a new issue