Skip to content
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

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

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

svermeulen
Copy link
Contributor

@svermeulen svermeulen commented Sep 18, 2023

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)

Copy link
Member

@alerque alerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to contribute. This looks pretty good in general, just a small nit and a question...

busted/outputHandlers/json.lua Outdated Show resolved Hide resolved
busted/outputHandlers/json.lua Show resolved Hide resolved
@Tieske Tieske changed the title Fixed issue where json fails to encode and then no errors are output fix(json-output): convert error object to string before encoding Sep 19, 2023
@Tieske Tieske merged commit e5e6691 into lunarmodules:master Sep 19, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants