modified error return value from {error, badjson} to {error, {badjson, Bin}} where Bin is the input from the point of the error
This commit is contained in:
parent
1a20e911a9
commit
a99644a926
5 changed files with 77 additions and 75 deletions
|
@ -69,7 +69,7 @@
|
|||
-type jsx_parser_result() ::
|
||||
{event, jsx_event(), fun(() -> jsx_parser_result())}
|
||||
| {incomplete, jsx_parser()}
|
||||
| {error, badjson}.
|
||||
| {error, {badjson, binary()}}.
|
||||
|
||||
|
||||
-type supported_utf() :: utf8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue