BadBooleanError exception (Elixir v1.19.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(1)> 123 and true
** (BadBooleanError) expected a boolean on left-side of "and", got: 123