Improve instructions in error message

This commit is contained in:
Katrin Leinweber 2019-05-14 20:00:58 +02:00 committed by GitHub
parent 9e1706505f
commit d597f3417b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,9 +152,10 @@ 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(
'Please review them in Git\'s staging area, ' \ 'Files were modified by this hook. '
'and repeat the commit.') 'Review the changes, `git add`, and repeat the commit.',
)
if stdout or stderr: if stdout or stderr:
output.write_line(' Additional output:') output.write_line(' Additional output:')