TMP / pre-commit.py: fix env_name

This commit is contained in:
OLEGSHA 2022-12-17 14:44:10 +03:00
parent affbaa56c9
commit 12671e8f69

View File

@ -347,7 +347,7 @@ def load_settings():
cmds = (hint.split(';') for hint in hints)
res = next((cmd for cmd in cmds if shutil.which(cmd[0])), None) \
or fail(f"Command {hints[0]} not found. Set {env_name} " +
or fail(f"Command {hints[0]} not found. Set {settings_name} " +
f"in {path} or check PATH")
verbose(f"Found command {hints[0]}:", *(repr(c) for c in res))