We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07afa2c commit 89e8d88Copy full SHA for 89e8d88
lib/elixir/lib/exception.ex
@@ -1997,8 +1997,9 @@ defmodule Protocol.UndefinedError do
1997
1998
@impl true
1999
def message(%{protocol: protocol, value: value, description: description}) do
2000
- "protocol #{inspect(protocol)} not implemented for #{inspect(value, pretty: true)} of type " <>
2001
- value_type(value) <> maybe_description(description) <> maybe_available(protocol)
+ "protocol #{inspect(protocol)} not implemented type " <> value_type(value) <>
+ maybe_description(description) <> maybe_available(protocol) <>
2002
+ "\n\nGot value: #{inspect(value, pretty: true)}"
2003
end
2004
2005
defp value_type(%{__struct__: struct}), do: "#{inspect(struct)} (a struct)"
0 commit comments