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

Friendly error message when an internal error #592

Closed
wants to merge 2 commits into from
Closed

Friendly error message when an internal error #592

wants to merge 2 commits into from

Conversation

nuintun
Copy link

@nuintun nuintun commented Sep 26, 2017

The debugging is terrible when I write a plugin!

Before:
tim 20170926222854

After:
tim 20170926222753

lib/ui/prompt.js Outdated
.catch(function (error) {
console.error(error);

process.exit();
Copy link
Owner

Choose a reason for hiding this comment

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

Let's not process.exit, this prevents users from handling the exception.

Copy link
Author

Choose a reason for hiding this comment

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

Already deleted process.exit.

@nuintun
Copy link
Author

nuintun commented Sep 27, 2017

Closed, Promise.catch worked now, but it didn't work before! Very strange...

@nuintun nuintun closed this Sep 27, 2017
@nuintun nuintun deleted the patch-1 branch August 15, 2019 02:38
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