From a28613b889eeb7fe20751919df3be441e85f3532 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 9 Sep 2017 21:34:06 +0200 Subject: [PATCH] Add param to StorePathCreate --- lib/core/libimagstore/src/error.rs | 4 ++-- lib/core/libimagstore/src/store.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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");