creating ethereum dir while in geth mode (#1530)

* creating ethereum dir while in geth mode

* fix warning

* more descriptive error
This commit is contained in:
Nikolay Volf 2016-07-04 13:53:21 +04:00 committed by Arkadiy Paronyan
parent 5c438cc58a
commit bb36a594c5

View File

@ -475,6 +475,11 @@ impl Configuration {
let signer_path = Configuration::replace_home(&self.args.flag_signer_path);
::std::fs::create_dir_all(&signer_path).unwrap_or_else(|e| die_with_io_error("main", e));
if self.args.flag_geth {
let geth_path = path::ethereum::default();
::std::fs::create_dir_all(geth_path.as_path()).unwrap_or_else(
|e| die!("Error while attempting to create '{}' for geth mode: {}", &geth_path.to_str().unwrap(), e));
}
Directories {
keys: keys_path,