From 496a763e3d819c31cc55f500ae99b9a71c7a66a0 Mon Sep 17 00:00:00 2001 From: arkpar Date: Sat, 8 Oct 2016 16:28:56 +0200 Subject: [PATCH] Print backtrace on panic --- parity/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parity/main.rs b/parity/main.rs index b74af7b3d87..e0d6dfe3671 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -196,6 +196,9 @@ fn sync_main() -> bool { } fn main() { + // Always print backtrace on panic. + ::std::env::set_var("RUST_BACKTRACE", "1"); + if sync_main() { return; }