From f8038e5c3e4bc86d795caa5eb47273fcfa238b5f Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 15 Aug 2023 10:29:03 -0400 Subject: [PATCH] add the process instance id to the error message when using system notifications on errors w/ burnettk --- .../spiffworkflow_backend/services/error_handling_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py index ce92466c..e877a631 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/error_handling_service.py @@ -62,7 +62,8 @@ class ErrorHandlingService: from spiffworkflow_backend.services.message_service import MessageService message_text = ( - f"There was an exception running process {process_model.id}.\nOriginal Error:\n{error.__repr__()}" + f"There was an exception running process model {process_model.id} for instance" + f" {process_instance.id}.\nOriginal Error:\n{error.__repr__()}" ) message_payload = { "message_text": message_text,