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

build: Don't throw when 'releases' is undefined #1624

Merged
merged 1 commit into from
Apr 8, 2018
Merged

Conversation

fhemberger
Copy link
Contributor

In case versions.json could not be properly downloaded/parsed by
'node-version-data', avoid TypeError: Cannot read property 'find' of undefined
when releases is undefined and return undefined instead.

Error should be handled properly elsewhere.

See: #1618

In case `versions.json` could not be properly downloaded/parsed by
'node-version-data', avoid `TypeError: Cannot read property 'find' of undefined`
when `releases` is `undefined` and return `undefined` instead.

Error should be handled properly elsewhere.

See: #1618
@fhemberger
Copy link
Contributor Author

Although this is not really a fix for #1618, at least we should not throw in this case but fail gracefully.

Copy link
Contributor

@WaleedAshraf WaleedAshraf left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants