Print backtraces for panics, even if the constellation has closed.

This commit is contained in:
Alan Jeffrey 2016-07-29 13:08:21 -05:00
parent 0f1a9f109d
commit 341b9de43b
2 changed files with 12 additions and 5 deletions

View file

@ -1090,7 +1090,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
if opts::get().hard_fail {
// It's quite difficult to make Servo exit cleanly if some threads have failed.
// Hard fail exists for test runners so we crash and that's good enough.
println!("Pipeline failed in hard-fail mode. Crashing!\n{}\n{}", reason, backtrace.unwrap_or_default());
println!("Pipeline failed in hard-fail mode. Crashing!");
process::exit(1);
}