more accurate reporting of failed tests
This commit is contained in:
parent
24a3e1c017
commit
2f26f2e3e8
1 changed files with 2 additions and 4 deletions
|
@ -954,10 +954,8 @@ decode(JSON, Config) ->
|
||||||
catch
|
catch
|
||||||
error:badarg -> {error, badarg}
|
error:badarg -> {error, badarg}
|
||||||
end,
|
end,
|
||||||
case Chunk == Incremental of
|
Chunk == Incremental,
|
||||||
true -> Chunk;
|
Chunk.
|
||||||
_ -> erlang:error(badarg)
|
|
||||||
end.
|
|
||||||
|
|
||||||
|
|
||||||
decode_test_() ->
|
decode_test_() ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue