Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix panic when logging directory does not exist, closes #10420 (#10424)
Browse files Browse the repository at this point in the history
  • Loading branch information
debris authored and jam10o-new committed Feb 26, 2019
1 parent 1871275 commit e2ab3e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ fn main_direct(force_can_restart: bool) -> i32 {
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() {
conf.args.flag_testnet = false;
Expand Down

0 comments on commit e2ab3e4

Please sign in to comment.