From 0c9b1324b080408b96f39dc720470c8d9b257201 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 May 2017 22:34:01 +0100 Subject: [PATCH] Better error message when missing CSL --- md_pdf/config/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md_pdf/config/validate.py b/md_pdf/config/validate.py index cc97a4b..edc3569 100644 --- a/md_pdf/config/validate.py +++ b/md_pdf/config/validate.py @@ -54,7 +54,7 @@ def validate_bibliography(config): if not os.path.isfile(abs_bibliography): raise ConfigValidationException("Invalid bibliography path: '{}'".format(abs_bibliography)) if not os.path.isfile(os.path.join(CSL_DIR, "{}.csl".format(config['bibliography']['csl']))): - raise ConfigValidationException("Could not find CSL '{}'".format(config['bibliography']['csl'])) + raise ConfigValidationException("Could not find CSL '{}' in {}".format(config['bibliography']['csl'], CSL_DIR)) def validate_context(config):