mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Improve messaging for missing hook given #480
This commit is contained in:
parent
cf1fa70252
commit
c08400e2bc
2 changed files with 2 additions and 6 deletions
|
|
@ -78,9 +78,7 @@ class Repository(object):
|
|||
logger.error(
|
||||
'`{}` is not present in repository {}. '
|
||||
'Typo? Perhaps it is introduced in a newer version? '
|
||||
'Often you can fix this by removing the hook, running '
|
||||
'`pre-commit autoupdate`, '
|
||||
'and then adding the hook.'.format(
|
||||
'Often `pre-commit autoupdate` fixes this.'.format(
|
||||
hook['id'], self.repo_config['repo'],
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue