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 uncaught exception on errors.js when 'bugs' field is missing from package.json #984

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

EricGeigerQ
Copy link
Contributor

@EricGeigerQ EricGeigerQ commented Dec 10, 2020

Fixes #983

Addresses edge case where uncaught exception can occur in errors.js if "bugs" field is missing from package.json.

Tests for 'bugs' field, and if missing, sets issueUrl to null. Side effect is that, if null, the helpUrl will not point to new issue path should a KafkaJSInvariantViolation error get thrown.

Addresses edge case where if "bugs" field is missing from package.json, error.js has uncaught exception.
@EricGeigerQ EricGeigerQ changed the title Prevent uncaught exception on errors.js when 'bugs' field is missing from package.json Fix uncaught exception on errors.js when 'bugs' field is missing from package.json Dec 10, 2020
@Nevon
Copy link
Collaborator

Nevon commented Dec 11, 2020

Thanks for the fix! 👍

@Nevon Nevon merged commit e1cefda into tulios:master Dec 11, 2020
@tulios
Copy link
Owner

tulios commented Dec 11, 2020

This is already available in 1.16.0-beta.1

@EricGeigerQ EricGeigerQ deleted the handle-error-for-missing-bugs-field branch December 11, 2020 19:25
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.

Throws unhandled exception if 'bugs' field is removed from package.json
3 participants