Print better error when asciidoc is missing.

This commit is contained in:
Florian Bruhin 2014-09-30 16:29:16 +02:00
parent 6cfc8c3faf
commit 4ca441e136

View File

@ -53,6 +53,10 @@ def call_asciidoc(src, dst):
except subprocess.CalledProcessError as e:
utils.print_col(str(e), 'red')
sys.exit(1)
except FileNotFoundError:
utils.print_col("asciidoc needs to be installed to use this script!",
'red')
sys.exit(1)
def main(colors=False):