Add param to StorePathCreate

This commit is contained in:
Matthias Beyer 2017-09-09 21:34:06 +02:00
parent ff8569809b
commit a28613b889
2 changed files with 3 additions and 3 deletions

View file

@ -123,9 +123,9 @@ error_chain! {
display("Store path exists: {:?}", pb) display("Store path exists: {:?}", pb)
} }
StorePathCreate { StorePathCreate(pb: PathBuf) {
description("Store path create") description("Store path create")
display("Store path create") display("Store path create: {:?}", pb)
} }
LockError { LockError {

View file

@ -270,7 +270,7 @@ impl Store {
} }
try!(backend.create_dir_all(&location) try!(backend.create_dir_all(&location)
.chain_err(|| SEK::StorePathCreate) .chain_err(|| SEK::StorePathCreate(location.clone()))
.map_dbg_err_str("Failed")); .map_dbg_err_str("Failed"));
} else if location.is_file() { } else if location.is_file() {
debug!("Store path exists as file"); debug!("Store path exists as file");