BadMapError exception (Elixir v1.19.0-dev)

View Source

An exception raised when a map is expected, but something else was given.

For example:

iex> value = "hello"
%{value | key: "value"}
** (BadMapError) expected a map, got: "hello"