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

On adding non existent github user name, error shown is not descriptive. #170

Closed
erdahuja opened this issue Feb 22, 2019 · 6 comments
Closed

Comments

@erdahuja
Copy link
Contributor

erdahuja commented Feb 22, 2019

  • all-contributors-cli version:
  • node version:
  • npm (or yarn) version:

Relevant code or config

What you did:
added non github username contributor.

What happened:

image

Reproduction repository:
Simply run cli tool "yarn run all-contributors" and answer question 1 with wrong username.

Problem description:

Suggested solution:

A better error message

@Berkmann18
Copy link
Member

Thanks for reporting that, what error message would you expect in the above scenario?
Would you mind opening a PR?

@erdahuja
Copy link
Contributor Author

I checked the code throws a common error for not found cases. This is very confusing for end users and non informative. let me try adding some value here.

@erdahuja
Copy link
Contributor Author

@Berkmann18 I have fixed it, how to add a PR? i dont have permissions.

My email id - [email protected]
github.com/erdahuja

@sinchang
Copy link
Contributor

@erdahuja you can see this tutorial http://makeapullrequest.com/

erdahuja added a commit to erdahuja/all-contributors-cli that referenced this issue Feb 23, 2019
erdahuja added a commit to erdahuja/all-contributors-cli that referenced this issue Feb 25, 2019
erdahuja added a commit to erdahuja/all-contributors-cli that referenced this issue Feb 25, 2019
erdahuja added a commit to erdahuja/all-contributors-cli that referenced this issue Feb 25, 2019
# This is the 1st commit message:
fix:all-contributors#6 added common error handling for username not provided or wrong username provided.

# This is the commit message all-contributors#2:

fix:all-contributors#170 added tests for no username case in github getInfo api.

# This is the commit message all-contributors#3:

fix:all-contributors#170 added tests for no username case in github getInfo api.
@jakebolam
Copy link
Collaborator

@erdahuja how's it going? Is there anything we can help with

@erdahuja
Copy link
Contributor Author

erdahuja commented Mar 17, 2019

@jakebolam @sinchang Please merge my PR it's completed with tests, also approved.

Berkmann18 pushed a commit that referenced this issue May 24, 2020
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

No branches or pull requests

4 participants