more accurate reporting of failed tests

This commit is contained in:
alisdair sullivan 2013-03-04 14:45:08 -08:00
parent 24a3e1c017
commit 2f26f2e3e8

View file

@ -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_() ->