Skip to content

Commit

Permalink
Merge pull request #1709 from paulhfischer/fix_missing_hooks_autoupda…
Browse files Browse the repository at this point in the history
…te_message

fixed message if repo couldn't be updated due to missing hook(s)
  • Loading branch information
asottile committed Nov 22, 2020
2 parents 099213f + 53109a0 commit 6e37f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/commands/autoupdate.py
Expand Up @@ -79,8 +79,8 @@ def _check_hooks_still_exist_at_rev(
hooks_missing = hooks - {hook['id'] for hook in manifest}
if hooks_missing:
raise RepositoryCannotBeUpdatedError(
f'Cannot update because the tip of HEAD is missing these hooks:\n'
f'{", ".join(sorted(hooks_missing))}',
f'Cannot update because the update target is missing these '
f'hooks:\n{", ".join(sorted(hooks_missing))}',
)


Expand Down

0 comments on commit 6e37f19

Please sign in to comment.