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

Reports no errors when running invalid/missing commands #405

Closed
abitrolly opened this issue Dec 23, 2022 · 0 comments · Fixed by #545
Closed

Reports no errors when running invalid/missing commands #405

abitrolly opened this issue Dec 23, 2022 · 0 comments · Fixed by #545
Labels
bug Something isn't working

Comments

@abitrolly
Copy link

🔧 Summary

When running invalid/missing command, lefthook doesn't report any errors.

Lefthook version

1.2.6

Steps to reproduce

$ lefthook run ammaabsent
Lefthook v1.2.6
RUNNING HOOK: ammaabsent
$ echo $?                
0

Expected results

$ lefthook run ammaabsent
Lefthook v1.2.6
RUNNING HOOK: ammaabsent
ERROR: no such hook `ammaabsent`
$ echo $?                
1
@abitrolly abitrolly added the bug Something isn't working label Dec 23, 2022
@abitrolly abitrolly changed the title Reports no errors on when trying to run invalid commands Reports no errors when running invalid/missing commands Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant