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:
alisdair sullivan 2010-09-27 14:07:36 -07:00
parent 1a20e911a9
commit a99644a926
5 changed files with 77 additions and 75 deletions

View file

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