# HG changeset patch # User Ludovic Chabant # Date 1450577128 28800 # Node ID bc23465ed1b4feb7e37bc1fbbfab753d2f6a057c # Parent a489162f2a1703a78612a2b9ccbd0c68cc96a299 bug: Fix a crash when some errors occur during page rendering. diff -r a489162f2a17 -r bc23465ed1b4 piecrust/rendering.py --- a/piecrust/rendering.py Sat Dec 19 18:02:58 2015 -0800 +++ b/piecrust/rendering.py Sat Dec 19 18:05:28 2015 -0800 @@ -279,7 +279,7 @@ layout_result['pass_info']) return rp except Exception as ex: - page_rel_path = os.path.relpath(page.path, ctx.app.root_dir) + page_rel_path = os.path.relpath(ctx.page.path, ctx.app.root_dir) raise Exception("Error rendering page: %s" % page_rel_path) from ex finally: ctx.setCurrentPass(PASS_NONE)