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

Better error message when GitHub token is missing #1182

Merged
merged 2 commits into from
Sep 20, 2021

Conversation

oturpe
Copy link
Contributor

@oturpe oturpe commented Sep 19, 2021

In order to access GitHub during development,
GitHub access token needs to be manually set
in the configuration file.
This is unavoidable, since developer's own token is needed.
On the other hand,
the error message about missing token was not very clear
because it was just 401 Unauthenticated from GitHub.
A special error message for the case of unset token is added.
This tells developers clearly what is wrong in their setup
and is not worse than 401 in a production setup.

@oturpe oturpe requested a review from a team as a code owner September 19, 2021 16:12
In order to access GitHub during development,
GitHub access token needs to be manually set
in the configuration file.
This is unavoidable, since developer's own token is needed.
On the other hand,
the error message about missing token was not very clear
because it was just 401 Unauthenticated from GitHub.
A special error message for the case of unset token is added.
This tells developers clearly what is wrong in their setup
and is not worse than 401 in a production setup.
@oturpe oturpe force-pushed the better-github-token-error branch from f6f80a0 to fa73098 Compare September 19, 2021 16:14
@softwarefactory-project-zuul
Copy link

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Copy link
Contributor

@Zlopez Zlopez left a comment

Choose a reason for hiding this comment

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

This looks great, thanks you

@softwarefactory-project-zuul
Copy link

Build succeeded.

@mergify mergify bot merged commit dedc512 into fedora-infra:master Sep 20, 2021
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.

2 participants