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 handling #7

Open
humphd opened this issue Sep 20, 2021 · 0 comments
Open

Improve error handling #7

humphd opened this issue Sep 20, 2021 · 0 comments

Comments

@humphd
Copy link

humphd commented Sep 20, 2021

If there's an error (e.g., processing a file), you should give a useful error message to the user, and decide whether or not the program can continue. If the error puts things in a state that can't be recovered (e.g., working on a file that doesn't exist), you'd be better off to log the error and then exit the program: process.exit(1) using a non-zero exit code.

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

No branches or pull requests

1 participant