summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMithil Poojary <mithil467@gmail.com>2020-10-05 04:17:28 +0530
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-05 09:01:46 +0200
commit6df8b3fe72b0ccd77657bdda96c7f09dabfc09ce (patch)
treee7d46ea0a839a7c15a8dc60967559b1c7ae08da8 /tests
parentb623adc6df59848c0cfd530332f69fa6bcb16a4e (diff)
Print error message if bat not found on path
Diffstat (limited to 'tests')
-rwxr-xr-xtests/syntax-tests/create_highlighted_versions.py3
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__":