From 81df782c2067b5eeb1bbf6dce991b6bb30f7e4e4 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <6d0847b9@opayq.com> Date: Tue, 9 Jan 2018 18:10:05 +0200 Subject: [PATCH] Update unstaged config file error message --- pre_commit/commands/run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 71fb43e7..4df2e30e 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -223,10 +223,10 @@ def run(runner, args, environ=os.environ): logger.error('Specify both --origin and --source.') return 1 if _has_unstaged_config(runner) and not no_stash: - logger.error(( - 'Your {0} is unstaged.\n' - '`git add {0}` to fix this.' - ).format(C.CONFIG_FILE),) + logger.error( + 'Your pre-commit configuration is unstaged.\n' + '`git add {}` to fix this.'.format(runner.config_file), + ) return 1 # Expose origin / source as environment variables for hooks to consume