From 20199099225be7f4ea1094bb0903ab7604702f66 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sun, 15 Oct 2023 20:32:20 -0400 Subject: [PATCH] Use concat! to break up a long string literal --- crates/compiler/load_internal/src/file.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/compiler/load_internal/src/file.rs b/crates/compiler/load_internal/src/file.rs index a9b70ba169b..2063746d7e3 100644 --- a/crates/compiler/load_internal/src/file.rs +++ b/crates/compiler/load_internal/src/file.rs @@ -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(), )) }) }