Mercurial > piecrust2
changeset 998:a49e6846e0da
bake: Fix crash when trying to report a deployment error.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 21 Nov 2017 09:54:00 -0800 |
parents | 7b4874b03fb1 |
children | 46025a1b5434 |
files | piecrust/baking/single.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/baking/single.py Fri May 12 09:27:18 2017 -0700 +++ b/piecrust/baking/single.py Tue Nov 21 09:54:00 2017 -0800 @@ -170,6 +170,8 @@ try: qualified_page.source.buildAssetor(qualified_page, sub_uri).copyAssets(out_assets_dir) except Exception as ex: + page_rel_path = os.path.relpath(qualified_page.path, + self.app.root_dir) raise BakingError("%s: error deploying page assets." % page_rel_path) from ex