CondClauseError exception (Elixir v1.19.0-rc.0)
View SourceAn exception raised when no clauses in a cond/1
expression evaluate to a truthy value.
For example, this exception gets raised for a cond/1
like the following:
iex> cond do
...> 1 + 1 == 3 -> :woah
...> nil -> "yeah this won't happen"
...> end
** (CondClauseError) no cond clause evaluated to a truthy value