Commit 80754c34 authored by Anton Gavrilov's avatar Anton Gavrilov Committed by GitHub

Insert explicit warning into the panic hook (#11225)

parent 8c2199dd
Pipeline #55644 passed with stages
in 17 minutes and 35 seconds
......@@ -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 {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment