Print backtrace on panic (#2535)
This commit is contained in:
parent
f200eb2cfe
commit
d6cad29f49
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user