mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 18:41:46 +04:00
Add useful instruction to error message
This commit is contained in:
parent
a889f0bfd5
commit
9e1706505f
1 changed files with 3 additions and 1 deletions
|
|
@ -152,7 +152,9 @@ def _run_single_hook(classifier, hook, args, skips, cols):
|
||||||
|
|
||||||
# Print a message if failing due to file modifications
|
# Print a message if failing due to file modifications
|
||||||
if file_modifications:
|
if file_modifications:
|
||||||
output.write('Files were modified by this hook.')
|
output.write('Files were modified by this hook.' \
|
||||||
|
'Please review them in Git\'s staging area, ' \
|
||||||
|
'and repeat the commit.')
|
||||||
|
|
||||||
if stdout or stderr:
|
if stdout or stderr:
|
||||||
output.write_line(' Additional output:')
|
output.write_line(' Additional output:')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue