We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca0a50 commit 268e645Copy full SHA for 268e645
compiler-core/src/error.rs
@@ -945,7 +945,7 @@ to `{}/{module}.gleam`.", origin.folder_name()
945
Error::MainFunctionIsPrivate { module } => vec![
946
Diagnostic {
947
title: "Module does not have a public main function".into(),
948
- text: format!(
+ text: wrap_format!(
949
"`{module}` has a main function, but it is private, so it cannot be run."
950
),
951
level: Level::Error,
@@ -967,7 +967,7 @@ target, so it cannot be run."
967
968
Error::MainFunctionHasWrongArity { module, arity } => vec![Diagnostic {
969
title: "Main function has wrong arity".into(),
970
971
"`{module}:main` should have an arity of 0 to be run but its arity is {arity}."
972
973
0 commit comments