mustache icon indicating copy to clipboard operation
mustache copied to clipboard

Executable `haskell-mustache` exits with success (status code 0) even if it reports an error.

Open kindaro opened this issue 1 year ago • 5 comments

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.

kindaro avatar Apr 05 '24 16:04 kindaro

I'm eager to see a PR that addresses this.

sol avatar Apr 15 '25 15:04 sol

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 avatar Apr 16 '25 11:04 kindaro

@kindaro, @sol and I now have commit rights. See:

  • https://github.com/JustusAdam/mustache/issues/69

mpilgrem avatar Apr 16 '25 19:04 mpilgrem

@kindaro, as the fix appeared minor, I've raised a pull request myself.

mpilgrem avatar Apr 16 '25 23:04 mpilgrem

I am happy to see this moving forward!

kindaro avatar Apr 17 '25 06:04 kindaro