From 073bbd676542e123dd7bb1c4533a61c57c14efd5 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sat, 8 Oct 2016 17:33:38 +0200 Subject: [PATCH] Print backtrace on panic (#2535) --- parity/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parity/main.rs b/parity/main.rs index bb9f5e743d6..454d2c16dca 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -117,6 +117,8 @@ fn start() -> Result { } fn main() { + // Always print backtrace on panic. + ::std::env::set_var("RUST_BACKTRACE", "1"); // just redirect to the sync::main() if std::env::args().nth(1).map_or(false, |arg| arg == "sync") { sync::main();