Skip to content

if_exception

Compare
Choose a tag to compare
@expede expede released this 28 Aug 23:45
· 38 commits to master since this release

Added if_exception, which has the ability to take the familiar forms:

if_exception [1,2,3], do: fn %{message: msg} -> msg end.(), else: Quark.id

if_exception [1,2,3] do
  fn %{message: msg} -> msg end.()
else
  Quark.id
end