Skip to content

Commit 9f9d050

Browse files
use data_error and schema_error definitions
1 parent ac6f304 commit 9f9d050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jesse.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ try_parse(Type, ParserFun, JsonBin) ->
257257
_:Error ->
258258
case Type of
259259
data ->
260-
throw([{data_error, {parse_error, Error}}]);
260+
throw([{?data_error, {parse_error, Error}}]);
261261
schema ->
262-
throw([{schema_error, {parse_error, Error}}])
262+
throw([{?schema_error, {parse_error, Error}}])
263263
end
264264
end.

0 commit comments

Comments
 (0)