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

Mustache command-line errors aren't logged to stderr and exit successfully. #182

Closed
shalecraig opened this issue Dec 1, 2014 · 2 comments

Comments

@shalecraig
Copy link

I tried running mustache[0] on a "bad" yml file[1], and it both logged to stdout[2], and exited successfully[3]. I expected neither of these.

For reference, my mustache version is:

mustache --version
Mustache v0.99.7

[0]
mustache bad.yml foo.mustache

[1]

bar: such invalid: wow

[2](redirect stderr to /dev/null)

> mustache data.yml index.mustache 2> /dev/null
Unable to parse yaml!
bar: such invalid: wow

[3]

> mustache data.yml index.mustache && echo "wat"
Unable to parse yaml!
bar: such invalid: wow
wat
@locks
Copy link
Member

locks commented Dec 1, 2014

Can you also paste your data.yml and index.mustache please?

@locks locks closed this as completed in ef5e267 Dec 1, 2014
@locks
Copy link
Member

locks commented Dec 1, 2014

It should be fixed 😃 Thanks for reporting. I'm going to publish v0.99.8 with the fix.

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

2 participants