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

Commit

Permalink
Print backtrace on panic (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar authored and gavofyork committed Oct 8, 2016
1 parent f200eb2 commit d6cad29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d6cad29

Please sign in to comment.