diff options
-rw-r--r-- | lib/elixir/lib/exception.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/exception.ex b/lib/elixir/lib/exception.ex index a679d6bdd..f58255219 100644 --- a/lib/elixir/lib/exception.ex +++ b/lib/elixir/lib/exception.ex @@ -1178,7 +1178,7 @@ defmodule KeyError do def message(exception = %{message: nil}), do: message(exception.key, exception.term) def message(%{message: message}), do: message - def message(key, term) do + defp message(key, term) do message = "key #{inspect(key)} not found" if term != nil do |