Created
August 31, 2016 11:57
-
-
Save expede/d1b664e49ab2aef96acc1f22ac54d469 to your computer and use it in GitHub Desktop.
Elixir Multiple Error Tuples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{: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