Mercurial > piecrust2
diff piecrust/rendering.py @ 858:58e28ba02fb7
refactor: Fix a few more pieces of code using the old APIs.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 08 Jun 2017 08:50:33 -0700 |
parents | 08e02c2a2a1a |
children | d1095774bfcf |
line wrap: on
line diff
--- a/piecrust/rendering.py Thu Jun 08 08:49:33 2017 -0700 +++ b/piecrust/rendering.py Thu Jun 08 08:50:33 2017 -0700 @@ -348,7 +348,7 @@ output = engine.renderFile(full_names, layout_data) except TemplateNotFoundError as ex: logger.exception(ex) - msg = "Can't find template for page: %s\n" % page.path + msg = "Can't find template for page: %s\n" % page.content_item.spec msg += "Looked for: %s" % ', '.join(full_names) raise Exception(msg) from ex