Skip to content

Commit

Permalink
use data_error and schema_error definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau authored Feb 5, 2019
1 parent ac6f304 commit 9f9d050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jesse.erl
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ try_parse(Type, ParserFun, JsonBin) ->
_:Error ->
case Type of
data ->
throw([{data_error, {parse_error, Error}}]);
throw([{?data_error, {parse_error, Error}}]);
schema ->
throw([{schema_error, {parse_error, Error}}])
throw([{?schema_error, {parse_error, Error}}])
end
end.

0 comments on commit 9f9d050

Please sign in to comment.