fix panic when logging directory does not exist, closes #10420 (#10424)

This commit is contained in:
Marek Kotewicz 2019-02-26 18:14:11 +01:00 committed by joshua-mir
parent 1871275ecd
commit e2ab3e4f5b

View File

@ -190,7 +190,10 @@ fn main_direct(force_can_restart: bool) -> i32 {
parity_ethereum::Configuration::parse_cli(&args).unwrap_or_else(|e| e.exit()) parity_ethereum::Configuration::parse_cli(&args).unwrap_or_else(|e| e.exit())
}; };
let logger = setup_log(&conf.logger_config()).expect("Logger is initialized only once; qed"); let logger = setup_log(&conf.logger_config()).unwrap_or_else(|e| {
eprintln!("{}", e);
process::exit(2)
});
if let Some(spec_override) = take_spec_name_override() { if let Some(spec_override) = take_spec_name_override() {
conf.args.flag_testnet = false; conf.args.flag_testnet = false;