Print error message if bat not found on path
commit6df8b3fe72b0ccd77657bdda96c7f09dabfc09ce
authorMithil Poojary <mithil467@gmail.com>
dateMon 5 Oct 2020, 04:17 (6 years ago)
parentb623adc
tests/syntax-tests/create_highlighted_versions.py+3
@@ -64,6 +64,9 @@ def create_highlighted_versions(output_basepath):
6464 file=sys.stderr,
6565 )
6666 sys.exit(1)
67+ except FileNotFoundError:
68+ print("Error: Could not execute 'bat'. Please make sure that the executable is available on the PATH.")
69+ sys.exit(1)
6770
6871
6972if __name__ == "__main__":