Skip to content

Commit 2a8bdd0

Browse files
authored
remove USAGE part of error message when using main macro (JuliaLang#55037)
I hit this error message and it felt someone was very angry at me
1 parent fba928d commit 2a8bdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/client.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,11 @@ const main = MyApp.main
620620
"""
621621
macro main(args...)
622622
if !isempty(args)
623-
error("USAGE: `@main` is expected to be used as `(@main)` without macro arguments.")
623+
error("`@main` is expected to be used as `(@main)` without macro arguments.")
624624
end
625625
if isdefined(__module__, :main)
626626
if Base.binding_module(__module__, :main) !== __module__
627-
error("USAGE: Symbol `main` is already a resolved import in module $(__module__). `@main` must be used in the defining module.")
627+
error("Symbol `main` is already a resolved import in module $(__module__). `@main` must be used in the defining module.")
628628
end
629629
end
630630
Core.eval(__module__, quote

0 commit comments

Comments
 (0)