mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Don't report unhelpful things.
This commit is contained in:
parent
08c6a044c4
commit
73f3250b8f
1 changed files with 9 additions and 7 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue