Print backtrace on panic (#2535)

This commit is contained in:
Arkadiy Paronyan 2016-10-08 17:33:38 +02:00 committed by Gav Wood
parent f200eb2cfe
commit d6cad29f49

View File

@ -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;
}