From bb36a594c513f3b4dba6fe1d35d0e22ce82182f0 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Mon, 4 Jul 2016 13:53:21 +0400 Subject: [PATCH] creating ethereum dir while in geth mode (#1530) * creating ethereum dir while in geth mode * fix warning * more descriptive error --- parity/configuration.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parity/configuration.rs b/parity/configuration.rs index 195f1e0c3..78c4b286a 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -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,