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

Default to stringified arg in formatComplaintLineArg #59

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

JoshuaKGoldberg
Copy link
Owner

It's expected to be stringified when passed to JSON.parse anyway, so this makes sure that won't crash. In the case of something like Error that becomes undefined, we can at least try to stringify it normally.

Fixes #58.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 0843f99 into master Jul 15, 2020
@JoshuaKGoldberg JoshuaKGoldberg deleted the jg-format-line-arg-json-stringify branch July 15, 2020 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read property 'match' of undefined
1 participant