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: handle errors that don't have a response #214

Merged

Conversation

nfriend
Copy link
Contributor

@nfriend nfriend commented Jan 27, 2021

What does this PR do?

Currently, the error handling in verify.js assumes the error object will always contain a response property. This isn't always true; for example, SSL errors will throw an error object without a response.

This MR PR updates the error handling to check for response before accessing response.statusCode. If response doesn't exist, the error is re-thrown.

Related to #186 and #212

@nfriend
Copy link
Contributor Author

nfriend commented Jan 27, 2021

@travi Would you mind reviewing this small PR? 🙏

Copy link
Member

@travi travi left a comment

Choose a reason for hiding this comment

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

lgtm

@travi travi merged commit 97b45cd into semantic-release:master Jan 27, 2021
@github-actions
Copy link

🎉 This PR is included in version 6.0.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants