Make error message more useful

This commit is contained in:
Jake Howard 2017-04-09 14:14:27 +01:00
parent 9362566e93
commit 565eaf58c8

View file

@ -17,7 +17,7 @@ CSL_TEMP_DIR = os.path.join(ASSET_DIR, 'styles-master')
def check_csl(): def check_csl():
if not os.path.isdir(CSL_DIR) or os.listdir(CSL_DIR) == []: if not os.path.isdir(CSL_DIR) or os.listdir(CSL_DIR) == []:
raise PrematureExit("No CSL files found!") raise PrematureExit("No CSL files found! Run again with --update-csl")
def download_csl(): def download_csl():