Roblox / testez

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

Don't stringify errors #144

Open MagiMaster opened 4 years ago

MagiMaster commented 4 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.