Add param to StorePathCreate
This commit is contained in:
parent
ff8569809b
commit
a28613b889
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue