Roblox / testez

BDD-style test and assertion library for Roblox Lua
https://roblox.github.io/testez/
Apache License 2.0
183 stars 58 forks source link

Don't stringify errors #144

Open MagiMaster opened 3 years ago

MagiMaster commented 3 years ago

Right now, we call tostring on any errors we get. This is to prevent errors within the error handling when trying to concatenate a non-string. The better solution would be to keep errors in their original form and only stringify them inside the reporter. That way, if the reporter wanted, it could do more than just call tostring.