Skip to content

Commit

Permalink
Use concat! to break up a long string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfeldman committed Oct 16, 2023
1 parent 1f1b981 commit 2019909
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/compiler/load_internal/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,11 @@ fn load_multi_threaded<'a>(
// .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(),
concat!(
"\n\nThere was an unrecoverable error in the Roc compiler. The `roc check` ",
"command can sometimes give a more helpful error report than other commands.\n\n"
)
.to_string(),
))
})
}
Expand Down

0 comments on commit 2019909

Please sign in to comment.