Skip to content

Commit 4021272

Browse files
authored
Fix missing space typo in compiler error message (#15186)
1 parent 28ffbcf commit 4021272

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/elixir/src/elixir_rewrite.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ format_error({invalid_match_append, Arg}) ->
367367
cannot_invoke_or_maybe_require(Receiver, Fun, Arity) ->
368368
try
369369
true = lists:member({Fun, Arity}, Receiver:'__info__'(macros)),
370-
["you must require the module", 'Elixir.Macro':to_string(Receiver), " before invoking macro"]
370+
["you must require the module ", 'Elixir.Macro':to_string(Receiver), " before invoking macro"]
371371
catch
372372
_:_ -> "cannot invoke remote function"
373373
end.

lib/elixir/test/elixir/kernel/expansion_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ defmodule Kernel.ExpansionTest do
810810

811811
test "in guards with macros" do
812812
message =
813-
~r"you must require the moduleInteger before invoking macro Integer.is_even/1 inside a guard"
813+
~r"you must require the module Integer before invoking macro Integer.is_even/1 inside a guard"
814814

815815
assert_compile_error(message, fn ->
816816
expand(quote(do: fn arg when Integer.is_even(arg) -> arg end))

0 commit comments

Comments
 (0)