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

Always exit with error when custom maskfile is not found #25

Merged
merged 1 commit into from
Jul 27, 2019

Conversation

jacobdeichert
Copy link
Owner

@jacobdeichert jacobdeichert commented Jul 27, 2019

Describe the solution

In #23, I allowed mask to not exit with an error when there's a missing maskfile. That is ideal behavior when you just want to run mask --version or mask --help in any directory, no matter if it has a maskfile.md or not. However, when you go to the extent of specifying mask --maskfile /path/to/some/nonexistent_maskfile.md, this should have caused mask to exit with an error message no matter what.

This PR fixes that behavior and properly exits mask when --maskfile points to an actual missing file.

How to test

  • Added unit tests
  • Added integration tests

Types of changes

Breaking change because it affects which status code mask exits with.

  • Bug fix
  • New feature
  • Breaking change

@jacobdeichert jacobdeichert merged commit 709eacc into master Jul 27, 2019
@jacobdeichert jacobdeichert deleted the always-exit-custom-maskfile-not-found branch April 4, 2020 15: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.

1 participant