summaryrefslogtreecommitdiff
path: root/lib/elixir/lib/exception.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elixir/lib/exception.ex')
-rw-r--r--lib/elixir/lib/exception.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/exception.ex b/lib/elixir/lib/exception.ex
index e61067b13..49e0e2590 100644
--- a/lib/elixir/lib/exception.ex
+++ b/lib/elixir/lib/exception.ex
@@ -1665,7 +1665,7 @@ defmodule ErlangError do
def normalize({:badkey, key, term}, _stacktrace) do
message =
- "key #{inspect(key)} not found in: #{inspect(term)}. " <>
+ "key #{inspect(key)} not found in: #{inspect(term, pretty: true, limit: :infinity)}\n\n" <>
"If you are using the dot syntax, such as map.field, " <>
"make sure the left-hand side of the dot is a map"