diff options
author | Mithil Poojary <mithil467@gmail.com> | 2020-10-05 04:17:28 +0530 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-10-05 09:01:46 +0200 |
commit | 6df8b3fe72b0ccd77657bdda96c7f09dabfc09ce (patch) | |
tree | e7d46ea0a839a7c15a8dc60967559b1c7ae08da8 /tests | |
parent | b623adc6df59848c0cfd530332f69fa6bcb16a4e (diff) |
Print error message if bat not found on path
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/syntax-tests/create_highlighted_versions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/syntax-tests/create_highlighted_versions.py b/tests/syntax-tests/create_highlighted_versions.py index 84842644..c03a0742 100755 --- a/tests/syntax-tests/create_highlighted_versions.py +++ b/tests/syntax-tests/create_highlighted_versions.py @@ -64,6 +64,9 @@ def create_highlighted_versions(output_basepath): file=sys.stderr, ) sys.exit(1) + except FileNotFoundError: + print("Error: Could not execute 'bat'. Please make sure that the executable is available on the PATH.") + sys.exit(1) if __name__ == "__main__": |