diff --git a/lib/domain/libimagwiki/src/wiki.rs b/lib/domain/libimagwiki/src/wiki.rs index 6e88a760..4024e29a 100644 --- a/lib/domain/libimagwiki/src/wiki.rs +++ b/lib/domain/libimagwiki/src/wiki.rs @@ -27,6 +27,7 @@ use libimagentrylink::internal::InternalLinker; use failure::Fallible as Result; use failure::Error; use failure::err_msg; +use failure::ResultExt; pub struct Wiki<'a, 'b>(&'a Store, &'b str); @@ -58,6 +59,7 @@ impl<'a, 'b> Wiki<'a, 'b> { self.0 .get(sid) + .context("Cannot get ID from store") .map_err(Error::from)? .ok_or_else(|| Error::from(err_msg("Missing index"))) }