diff --git a/lib/elixir/src/elixir_import.erl b/lib/elixir/src/elixir_import.erl index ffbbc85cb5b..e5f9eb1d200 100644 --- a/lib/elixir/src/elixir_import.erl +++ b/lib/elixir/src/elixir_import.erl @@ -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)]); diff --git a/lib/elixir/test/elixir/kernel/errors_test.exs b/lib/elixir/test/elixir/kernel/errors_test.exs index 7718b4fedc1..f268c63617c 100644 --- a/lib/elixir/test/elixir/kernel/errors_test.exs +++ b/lib/elixir/test/elixir/kernel/errors_test.exs @@ -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 diff --git a/lib/elixir/test/elixir/macro/env_test.exs b/lib/elixir/test/elixir/macro/env_test.exs index 1a62f3cab85..9406462db08 100644 --- a/lib/elixir/test/elixir/macro/env_test.exs +++ b/lib/elixir/test/elixir/macro/env_test.exs @@ -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) ==