mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Added hook-stage print to output for missing hook id
This commit is contained in:
parent
927b2ab3f8
commit
c148845a98
2 changed files with 8 additions and 2 deletions
|
|
@ -285,7 +285,7 @@ def run(config_file, store, args, environ=os.environ):
|
|||
]
|
||||
|
||||
if args.hook and not hooks:
|
||||
output.write_line('No hook with id `{}`'.format(args.hook))
|
||||
output.write_line('No hook with id `{}` in stage `{}`'.format(args.hook, args.hook_stage))
|
||||
return 1
|
||||
|
||||
install_hook_envs(hooks, store)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue