Commit 6a113760 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added toplevel errors in calc proc to appropriate logger.

parent 49333e9d
Pipeline #37194 passed with stages
in 5 minutes and 59 seconds
......@@ -180,6 +180,7 @@ class Calc(Proc):
parser = parser_dict[self.parser]
self._parser_backend = parser.run(self.mainfile_tmp_path, logger=logger)
if self._parser_backend.status[0] != 'ParseSuccess':
logger.error(self._parser_backend.status[1])
error = self._parser_backend.status[1]
self.fail(error, level=logging.DEBUG)
......@@ -190,6 +191,7 @@ class Calc(Proc):
normalizer_name = normalizer.__name__
normalizer(self._parser_backend).normalize(logger=logger)
if self._parser_backend.status[0] != 'ParseSuccess':
logger.error(self._parser_backend.status[1])
error = self._parser_backend.status[1]
self.fail(error, normalizer=normalizer_name, level=logging.WARNING)
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment