diff --git a/lib/core/libimagstore/src/configuration.rs b/lib/core/libimagstore/src/configuration.rs index d0b3452d..3b9cc1e8 100644 --- a/lib/core/libimagstore/src/configuration.rs +++ b/lib/core/libimagstore/src/configuration.rs @@ -34,6 +34,7 @@ pub fn config_implicit_store_create_allowed(config: &Option) -> Result StoreIdWithBase<'a> { store_part.display()); let p = full_path .strip_prefix(store_part) + .context(format_err!("Cannot strip prefix '{}' from path: '{}'", + store_part.display(), + full_path.display())) .map_err(Error::from) .context(err_msg("Error building Store Id from full path"))?; Ok(StoreIdWithBase(store_part, PathBuf::from(p)))