-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to encode results to json due to non-string error objects being raised #729
Comments
Reopening the issue: |
PRs welcome. Just papering over this with |
Ok. Will investigate further) |
@svermeulen I know it has been a while, but can you tell me how to reproduce your issue? I am trying to pass a custom error object to |
I have a custom error table that I pass to
error(foo)
. When I do this in a busted test, and then pass--output=json
, it will just print nothing, due to an error that occurs in json.encode where it is unable to serialize function objects. I'm guessing that busted should runtostring(error_obj)
somewhere to address this problemThe text was updated successfully, but these errors were encountered: