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_import.erl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ format_error({invalid_import, {Receiver, Name, Arity}}) ->
[elixir_aliases:inspect(Receiver), Name, Arity]);

format_error({invalid_option, only, Value}) ->
Message = "invalid :only option for import, expected value to be an atom :functions, :macros"
Message = "invalid :only option for import, expected value to be an atom :functions, :macros, :sigils"
", or a literal keyword list of function names with arity as values, got: ~s",
io_lib:format(Message, ['Elixir.Macro':to_string(Value)]);

Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/test/elixir/kernel/errors_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ defmodule Kernel.ErrorsTest do
assert_compile_error(
[
"nofile:3:3",
"invalid :only option for import, expected value to be an atom :functions, :macros, or a literal keyword list of function names with arity as values, got: x"
"invalid :only option for import, expected value to be an atom :functions, :macros, :sigils, or a literal keyword list of function names with arity as values, got: x"
],
~c"""
defmodule Kernel.ErrorsTest.Only do
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/test/elixir/macro/env_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule Macro.EnvTest do

test "with errors" do
message =
"invalid :only option for import, expected value to be an atom :functions, :macros, " <>
"invalid :only option for import, expected value to be an atom :functions, :macros, :sigils, " <>
"or a literal keyword list of function names with arity as values, got: "

assert define_import(env(), meta(), Integer, only: :unknown) ==
Expand Down
Loading