diff --git a/lib/core/libimagstore/src/error.rs b/lib/core/libimagstore/src/error.rs index 8d0b180c..004e0b60 100644 --- a/lib/core/libimagstore/src/error.rs +++ b/lib/core/libimagstore/src/error.rs @@ -123,9 +123,9 @@ error_chain! { display("Store path exists: {:?}", pb) } - StorePathCreate { + StorePathCreate(pb: PathBuf) { description("Store path create") - display("Store path create") + display("Store path create: {:?}", pb) } LockError { diff --git a/lib/core/libimagstore/src/store.rs b/lib/core/libimagstore/src/store.rs index 0945c3a4..bc9fa77d 100644 --- a/lib/core/libimagstore/src/store.rs +++ b/lib/core/libimagstore/src/store.rs @@ -270,7 +270,7 @@ impl Store { } try!(backend.create_dir_all(&location) - .chain_err(|| SEK::StorePathCreate) + .chain_err(|| SEK::StorePathCreate(location.clone())) .map_dbg_err_str("Failed")); } else if location.is_file() { debug!("Store path exists as file");