Mercurial > piecrust2
comparison piecrust/serving/procloop.py @ 565:ff714d7f074d
serve: Fix error reporting when the background pipeline fails.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Fri, 09 Oct 2015 16:49:12 -0700 |
| parents | cc6f3dbe3048 |
| children | 7dabfdd056a1 |
comparison
equal
deleted
inserted
replaced
| 564:353a0b30f412 | 565:ff714d7f074d |
|---|---|
| 166 'type': 'pipeline_error', | 166 'type': 'pipeline_error', |
| 167 'assets': []} | 167 'assets': []} |
| 168 for entry in self._record.entries: | 168 for entry in self._record.entries: |
| 169 if entry.errors: | 169 if entry.errors: |
| 170 asset_item = { | 170 asset_item = { |
| 171 'path': entry.rel_input, | 171 'path': entry.path, |
| 172 'errors': list(entry.errors)} | 172 'errors': list(entry.errors)} |
| 173 item['assets'].append(asset_item) | 173 item['assets'].append(asset_item) |
| 174 | 174 |
| 175 self._notifyObservers(item) | 175 self._notifyObservers(item) |
| 176 except Exception as ex: | 176 except Exception as ex: |
