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

Create and leverage global error functions #250

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

chriswells0
Copy link
Collaborator

This seems like a lot of changes, but they're very minor. It also introduces a common.sh file where more common code could be added.

I was making a different change that needed to exit on an error, and I noticed that an error_notify function was defined in several files. I pulled that into a common file and changed it so error_notify just prints an error message whereas error_exit also exits. This makes error messages easier to read and write.

Note that I also fixed some minor typos in existing error messages. You may want to read each one carefully to be sure the change is good.

@cedwards cedwards merged commit 976aa07 into BastilleBSD:master Sep 22, 2020
@chriswells0 chriswells0 deleted the error-functions branch September 27, 2020 17:26
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.

2 participants