Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_rewrite.erl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ format_error({invalid_match_append, Arg}) ->
cannot_invoke_or_maybe_require(Receiver, Fun, Arity) ->
try
true = lists:member({Fun, Arity}, Receiver:'__info__'(macros)),
["you must require the module", 'Elixir.Macro':to_string(Receiver), " before invoking macro"]
["you must require the module ", 'Elixir.Macro':to_string(Receiver), " before invoking macro"]
catch
_:_ -> "cannot invoke remote function"
end.
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/test/elixir/kernel/expansion_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ defmodule Kernel.ExpansionTest do

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

assert_compile_error(message, fn ->
expand(quote(do: fn arg when Integer.is_even(arg) -> arg end))
Expand Down
Loading