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 committed Oct 11, 2016
1 parent eae23e5 commit 073bbd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ fn start() -> Result<String, String> {
}

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();
Expand Down

0 comments on commit 073bbd6

Please sign in to comment.