use data_error and schema_error definitions

This commit is contained in:
Andrei Neculau 2019-02-05 14:22:09 +01:00 committed by GitHub
parent ac6f3045ee
commit 9f9d050627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.