# HG changeset patch # User Ludovic Chabant # Date 1435466868 25200 # Node ID 6238dcfc7a78f3cb7a44ff3ed35017d6c7eb9863 # Parent 5be2751370565c9a1c73578f1a6986b4ae3c426c reporting: Print errors that occured during pipeline processing. diff -r 5be275137056 -r 6238dcfc7a78 piecrust/processing/pipeline.py --- a/piecrust/processing/pipeline.py Sat Jun 27 21:47:22 2015 -0700 +++ b/piecrust/processing/pipeline.py Sat Jun 27 21:47:48 2015 -0700 @@ -121,11 +121,16 @@ entry.flags |= res.flags entry.proc_tree = res.proc_tree entry.rel_outputs = res.rel_outputs + if entry.flags & FLAG_PROCESSED: + record.current.processed_count += 1 if res.errors: entry.errors += res.errors record.current.success = False - if entry.flags & FLAG_PROCESSED: - record.current.processed_count += 1 + + rel_path = os.path.relpath(res.path, self.app.root_dir) + logger.error("Errors found in %s:" % rel_path) + for e in entry.errors: + logger.error(" " + e) pool = self._createWorkerPool() expected_result_count = self._process(src_dir_or_file, pool, record)