Mercurial > piecrust2
changeset 359:2cd2b5d07129
bake: Fix crash when handling bake errors.
Bring back global record entry errors for errors that occur independently of
baking sub-pages (and potentially before any sub-page was processed).
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 20 Apr 2015 23:56:35 -0700 |
parents | 15d81d250b48 |
children | 95874699ec2e |
files | piecrust/baking/records.py piecrust/commands/builtin/baking.py |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/baking/records.py Mon Apr 20 22:50:41 2015 -0700 +++ b/piecrust/baking/records.py Mon Apr 20 23:56:35 2015 -0700 @@ -88,6 +88,7 @@ self.config = None self.subs = [] self.assets = [] + self.errors = [] @property def path_mtime(self):
--- a/piecrust/commands/builtin/baking.py Mon Apr 20 22:50:41 2015 -0700 +++ b/piecrust/commands/builtin/baking.py Mon Apr 20 23:56:35 2015 -0700 @@ -199,6 +199,8 @@ logging.error(" errors: %s" % sub.errors) logging.info(" assets: %s" % ', '.join(entry.assets)) + if entry.errors: + logging.error(" errors: %s" % entry.errors) record_cache = ctx.app.cache.getCache('proc') if not record_cache.has(record_name):