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 the promise rejection if an interrupt occurs in the regular workflow of cli-executor #1268

Closed
jamesgeorge007 opened this issue Feb 26, 2020 · 0 comments · Fixed by #1269

Comments

@jamesgeorge007
Copy link
Member

jamesgeorge007 commented Feb 26, 2020

Describe the bug

The cli-executor makes sure that the users aren't left out if they pass in an unknown flag. And if the user interrupts the regular workflow, a promise rejection occurs which is left unhandled.

What is the current behavior?

[webpack-cli] Promise rejection: is logged on to the console.

To Reproduce
Steps to reproduce the behavior:

Type in webpack-cli --unknown

ctrl/cmd+c would result in a promise rejection text being logged to the console.

Expected behavior

Handle the promise rejection thereby replacing what is currently logged with an appropriate message.

Screenshots

Screenshot from 2020-02-26 10-19-06

Additional context

N/A

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 a pull request may close this issue.

1 participant