Mercurial > piecrust2
comparison piecrust/commands/builtin/baking.py @ 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 | 938be93215cb |
children | e7b865f8f335 |
comparison
equal
deleted
inserted
replaced
358:15d81d250b48 | 359:2cd2b5d07129 |
---|---|
197 | 197 |
198 if sub.errors: | 198 if sub.errors: |
199 logging.error(" errors: %s" % sub.errors) | 199 logging.error(" errors: %s" % sub.errors) |
200 | 200 |
201 logging.info(" assets: %s" % ', '.join(entry.assets)) | 201 logging.info(" assets: %s" % ', '.join(entry.assets)) |
202 if entry.errors: | |
203 logging.error(" errors: %s" % entry.errors) | |
202 | 204 |
203 record_cache = ctx.app.cache.getCache('proc') | 205 record_cache = ctx.app.cache.getCache('proc') |
204 if not record_cache.has(record_name): | 206 if not record_cache.has(record_name): |
205 return | 207 return |
206 | 208 |