testez icon indicating copy to clipboard operation
testez copied to clipboard

Don't stringify errors

Open MagiMaster opened this issue 5 years ago • 0 comments

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.

MagiMaster avatar Oct 02 '20 20:10 MagiMaster