diff --git a/oggm/utils.py b/oggm/utils.py index a4d15a69f..af134c6f4 100644 --- a/oggm/utils.py +++ b/oggm/utils.py @@ -2449,9 +2449,9 @@ def _entity_task(gdir, reset=None, print_log=True, **kwargs): gdir.log(task_name, err=err) pipe_log(gdir, task_name, err=err) if print_log: - self.log.error('%s occurred during task %s on %s!', + self.log.error('%s occurred during task %s on %s: %s', type(err).__name__, task_name, - gdir.rgi_id) + gdir.rgi_id, str(err)) if not cfg.PARAMS['continue_on_error']: raise return out diff --git a/oggm/workflow.py b/oggm/workflow.py index 44249c71e..488a75eed 100644 --- a/oggm/workflow.py +++ b/oggm/workflow.py @@ -87,7 +87,7 @@ def __call__(self, gdir): except Exception as e: try: err_msg = '({0}) exception occured while processing task ' \ - '{1}'.format(gdir.rgi_id, self.call_func.__name__) + '{1}: {2}'.format(gdir.rgi_id, self.call_func.__name__, str(e)) raise RuntimeError(err_msg) from e except AttributeError: pass