lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.38k stars 184 forks source link

fix(json-output): convert error object to string before encoding #730

Closed svermeulen closed 10 months ago

svermeulen commented 10 months ago

Fixes issue #729

Also worth noting that a better way to handle json encode errors would probably be to report this via the json object instead of just outputting the error directly, but at least this way there is some output indicating the problem (previously no output about error would occur)