Improve messaging for missing hook given #480

This commit is contained in:
Anthony Sottile 2017-01-30 20:42:01 -08:00
parent cf1fa70252
commit c08400e2bc
2 changed files with 2 additions and 6 deletions

View file

@ -696,9 +696,7 @@ def test_hook_id_not_present(tempdir_factory, store, fake_log_handler):
assert fake_log_handler.handle.call_args[0][0].msg == (
'`i-dont-exist` 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(path)
'Often `pre-commit autoupdate` fixes this.'.format(path)
)