Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions crates/turborepo-lib/src/panic_handler.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::io::Write;

use human_panic::report::{Method, Report};

use crate::get_version;
Expand Down Expand Up @@ -63,11 +65,10 @@ pub fn panic_handler(panic_info: &std::panic::PanicHookInfo) {
)
};

eprintln!(
"Oops! Turbo has crashed.

{report_message}"
);
// `eprintln!` panics if stderr is unwritable, and a panic in a panic hook
// aborts.
let _ = std::io::stderr()
.write_all(format!("Oops! Turbo has crashed.\n\n{report_message}\n").as_bytes());
}

#[cfg(test)]
Expand Down
Loading