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

Commit

Permalink
Insert explicit warning into the panic hook (#11225)
Browse files Browse the repository at this point in the history
  • Loading branch information
grbIzl authored Oct 31, 2019
1 parent 8c2199d commit 80754c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ fn main_direct(force_can_restart: bool) -> i32 {
let e = exit.clone();
let exiting = exiting.clone();
move |panic_msg| {
warn!("Panic occured, see stderr for details");
eprintln!("{}", panic_msg);
if !exiting.swap(true, Ordering::SeqCst) {
*e.0.lock() = ExitStatus {
Expand Down

0 comments on commit 80754c3

Please sign in to comment.