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

Abort process when github response is not OK #189

Merged
merged 2 commits into from
Dec 16, 2019
Merged

Conversation

emmenko
Copy link
Contributor

@emmenko emmenko commented Dec 8, 2019

I recently bumped into this case where my github token was not valid anymore. When I run lerna-changelog, there no error an no output and it took me a bit of debugging to figure out that my token was not valid anymore.

This PR fixes the response handling by throwing an error in case the response is not successful.

image

@emmenko emmenko added the bug label Dec 8, 2019
@emmenko emmenko requested a review from Turbo87 December 8, 2019 20:29
@Turbo87 Turbo87 force-pushed the nm-handle-401-responses branch from eb541df to cccc244 Compare December 16, 2019 08:07
@Turbo87 Turbo87 changed the title fix: abort process when github response is not OK Abort process when github response is not OK Dec 16, 2019
Copy link
Contributor

@Turbo87 Turbo87 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 working on this! 🙏

I've rebased and slightly adjusted it (e.g. using process.exitCode instead of process.exit()) :)

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