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

Improve error messages when throwing strings #6

Open
radubrehar opened this issue Mar 16, 2017 · 0 comments
Open

Improve error messages when throwing strings #6

radubrehar opened this issue Mar 16, 2017 · 0 comments
Projects

Comments

@radubrehar
Copy link

If from a command executor I throw with

throw new Error('No --from option is specified.');

a nice error message is displayed like:

✗ No --from option is specified.

But instead if I simply throw a string like

throw 'No --from option is specified.';

the cli simply displays:

✗ undefined
@idancali idancali added this to Backlog in Roadmap Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Roadmap
Backlog
Development

No branches or pull requests

1 participant