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

handle ENOTFOUND errors and ask users to report all other errors; #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boneskull
Copy link
Contributor

@boneskull boneskull commented Nov 13, 2019

This PR will ask users to report unhandled rejections or uncaught exceptions to the project issue tracker. It also detects a DNS or network problem and prints a nicer message instead.

  • added a test to check this is working
  • added dev dep execa for said test
  • added buggin unexpected error output
  • update package.json with correct repo info

If the user is disconnected from the network:

image

If something else bad happens:

image

(This example problem arises if the repo simply doesn't exist on GitHub, which should probably be explicitly handled by good-first-issue.)

When clicking the link, the user will be taken to something like this:

image

The link is displayed in full (big querystring) if the terminal does not support link rendering, which is most stuff except iTerm, afaik.

Refs: #80

@boneskull
Copy link
Contributor Author

ping @bnb

@bnb
Copy link
Member

bnb commented Dec 6, 2019

Oi, sorry for not seeing this. Will take a look this weekend ❤️

@boneskull
Copy link
Contributor Author

@bnb no hurry, I know how it is

@bnb
Copy link
Member

bnb commented Dec 9, 2019

Created some issues on the buggin repo. Would love to see them addressed before merging 👍

@boneskull boneskull force-pushed the issue/78 branch 2 times, most recently from 8412038 to fe02cec Compare December 18, 2019 01:28
cutenode#78

This PR will ask users to report unhandled rejections or uncaught exceptions to the project issue tracker.

- added a test to check this is working
- added dev dep [execa](https://npm.im/execa) for said test
- added [buggin](https://npm.im/buggin) unexpected error output
@boneskull
Copy link
Contributor Author

@bnb this is updated with your requested changes in buggin

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.

None yet

2 participants