Executable `haskell-mustache` exits with success (status code 0) even if it reports an error.
see for yourself
% if haskell-mustache nonsense.template imaginary.yaml; then echo "success"; else echo "failure"; fi
"nonsense.template" (line 1, column 1):
Template file 'nonsense.template' not found
success
what happens
The example above prints success. Overall, there is no way to programmatically detect that there was an error.
what should happen
The example above should print failure.
I'm eager to see a PR that addresses this.
I can do it but I need to know who will be responsible for merging it. This repository has been dead for years and I do not want to spend time making a pull request to a repository without an active maintainer. Simon @sol, do you have merging access?
@kindaro, @sol and I now have commit rights. See:
- https://github.com/JustusAdam/mustache/issues/69
@kindaro, as the fix appeared minor, I've raised a pull request myself.
I am happy to see this moving forward!