Skip to content

Commit

Permalink
Exceptions no longer require a message field (#24)
Browse files Browse the repository at this point in the history
The callback is required, but the key is not
  • Loading branch information
haljin authored and expede committed Dec 19, 2019
1 parent 9f1d6e0 commit 8fbf137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exceptional/tagged_status.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule Exceptional.TaggedStatus do

value ->
if Exception.exception?(value) do
{:error, value.message}
{:error, Exception.message(value)}
else
{:ok, value}
end
Expand Down

0 comments on commit 8fbf137

Please sign in to comment.