Skip to content

Instantly share code, notes, and snippets.

@expede
Created August 31, 2016 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expede/d1b664e49ab2aef96acc1f22ac54d469 to your computer and use it in GitHub Desktop.
Save expede/d1b664e49ab2aef96acc1f22ac54d469 to your computer and use it in GitHub Desktop.
Elixir Multiple Error Tuples
{:error, "Something went boom"}
{:error, "Something went boom", %{original :data}}
{:error, %{original: :data}}
# Yes, this exists in the wild
{:ok, %{error: %{reason: "something went boom", data: %{original: :data}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment