-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Don't throw strings when there are errors
It makes for confusing output that tells the user something is wrong with the program, directing them to dig into istanbul's guts to 'fix the problem', because the file and line number are printed there. Instead, if we get a string, just output it to stderr, and exit with status code 1. If an actual (non-string) error is raised, still throw it, since that does genuinely indicate that something is probably wrong. Fix #518
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters