diff 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
line wrap: on
line diff
--- 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):