From d597f3417bae327335cd1950cf91bd0825a9efb9 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Tue, 14 May 2019 20:00:58 +0200 Subject: [PATCH] Improve instructions in error message --- pre_commit/commands/run.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 6c191fac..b2260fec 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -152,9 +152,10 @@ def _run_single_hook(classifier, hook, args, skips, cols): # Print a message if failing due to file modifications if file_modifications: - output.write('Files were modified by this hook.' \ - 'Please review them in Git\'s staging area, ' \ - 'and repeat the commit.') + output.write( + 'Files were modified by this hook. ' + 'Review the changes, `git add`, and repeat the commit.', + ) if stdout or stderr: output.write_line(' Additional output:')