diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_service.py index 0e5ae428..94b2714a 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_service.py @@ -68,13 +68,13 @@ class ProcessInstanceService: ) processor = ProcessInstanceProcessor(process_instance) processor.do_engine_steps(save=True) - except Exception: + except Exception as e: db.session.rollback() # in case the above left the database with a bad transaction process_instance.status = ProcessInstanceStatus.erroring.value db.session.add(process_instance) db.session.commit() error_message = f"Error running waiting task for process_instance {process_instance.id}" + \ - "({process_instance.process_model_identifier}). {str(e)}" + f"({process_instance.process_model_identifier}). {str(e)}" current_app.logger.error(error_message) @staticmethod