Don't report unhelpful things.

This commit is contained in:
Richard Feldman 2023-10-14 21:30:53 -04:00
parent 08c6a044c4
commit 73f3250b8f
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -1882,13 +1882,15 @@ fn load_multi_threaded<'a>(
// that there was a compiler crash.
//
// Unfortunately, this often has no information to report if there's a panic in mono.
report_problems(
&sources_recorded,
&mut interns_recorded,
&mut can_problems_recorded,
&mut type_problems_recorded,
)
.print_to_stdout(Duration::default()); // TODO determine total elapsed time and use it here
// Consequently, the following ends up being more misleading than helpful.
//
// roc_reporting::cli::report_problems(
// &sources_recorded,
// &mut interns_recorded,
// &mut can_problems_recorded,
// &mut type_problems_recorded,
// )
// .print_to_stdout(Duration::default()); // TODO determine total elapsed time and use it here
Err(LoadingProblem::FormattedReport(
"\n\nThere was an unrecoverable error in the Roc compiler. Try using the `roc check` command; that may give a more helpful error report.\n\n".to_string(),