From 1de81beebfa572b9b694827ffbbb43db95820f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Cac=CC=A7ador?= Date: Tue, 11 Feb 2025 11:24:05 +0000 Subject: [PATCH] IWF-511: Split Error Details work to another ticket --- service/client/cadence/client.go | 8 ++------ service/client/temporal/client.go | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/service/client/cadence/client.go b/service/client/cadence/client.go index 7501e7ef..3c6f869b 100644 --- a/service/client/cadence/client.go +++ b/service/client/cadence/client.go @@ -91,12 +91,8 @@ func (t *cadenceClient) GetApplicationErrorDetails(err error, detailsPtr interfa func (t *cadenceClient) GetApplicationErrorTypeAndDetails(err error) (string, string) { errType := t.GetApplicationErrorTypeIfIsApplicationError(err) - var errDetails string - detailErr := t.GetApplicationErrorDetails(err, &errDetails) - if detailErr != nil { - errDetails = detailErr.Error() - } - return errType, errDetails + // TODO: Error Details will be added under IWF-511 + return errType, "" } func NewCadenceClient( diff --git a/service/client/temporal/client.go b/service/client/temporal/client.go index 74d09c63..a2f4a3ed 100644 --- a/service/client/temporal/client.go +++ b/service/client/temporal/client.go @@ -119,12 +119,8 @@ func (t *temporalClient) GetApplicationErrorDetails(err error, detailsPtr interf func (t *temporalClient) GetApplicationErrorTypeAndDetails(err error) (string, string) { errType := t.GetApplicationErrorTypeIfIsApplicationError(err) - var errDetails string - detailErr := t.GetApplicationErrorDetails(err, &errDetails) - if detailErr != nil { - errDetails = detailErr.Error() - } - return errType, errDetails + // TODO: Error Details will be added under IWF-511 + return errType, "" } func (t *temporalClient) StartInterpreterWorkflow(