BadBooleanError exception (Elixir v1.20.0-dev)
View SourceAn exception raised when a boolean is expected, but something else was given.
This exception is raised by and
and or
when the first argument is not a boolean:
iex> 123 and true
** (BadBooleanError) expected a boolean on left-side of "and", got:
...