Skip to content

Commit 268e645

Browse files
wrap lines
1 parent 8ca0a50 commit 268e645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-core/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ to `{}/{module}.gleam`.", origin.folder_name()
945945
Error::MainFunctionIsPrivate { module } => vec![
946946
Diagnostic {
947947
title: "Module does not have a public main function".into(),
948-
text: format!(
948+
text: wrap_format!(
949949
"`{module}` has a main function, but it is private, so it cannot be run."
950950
),
951951
level: Level::Error,
@@ -967,7 +967,7 @@ target, so it cannot be run."
967967

968968
Error::MainFunctionHasWrongArity { module, arity } => vec![Diagnostic {
969969
title: "Main function has wrong arity".into(),
970-
text: format!(
970+
text: wrap_format!(
971971
"`{module}:main` should have an arity of 0 to be run but its arity is {arity}."
972972
),
973973
level: Level::Error,

0 commit comments

Comments
 (0)