mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
use data_error and schema_error definitions
This commit is contained in:
parent
ac6f3045ee
commit
9f9d050627
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user