From 48a157e1af87e8302b5d8e492480c15d89a9f277 Mon Sep 17 00:00:00 2001 From: Zijian Date: Fri, 20 May 2022 10:09:32 -0700 Subject: [PATCH] Fix error conversion for WorkflowExecutionAlreadyStartedError (#4838) --- service/history/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/history/handler.go b/service/history/handler.go index 29e11322b40..345301963e1 100644 --- a/service/history/handler.go +++ b/service/history/handler.go @@ -2061,7 +2061,7 @@ func (h *handlerImpl) convertError(err error) error { return shard.CreateShardOwnershipLostError(h.GetHostInfo(), info) case *persistence.WorkflowExecutionAlreadyStartedError: - return &types.InternalServiceError{Message: err.Msg} + return &types.WorkflowExecutionAlreadyStartedError{Message: err.Msg} case *persistence.CurrentWorkflowConditionFailedError: return &types.InternalServiceError{Message: err.Msg} case *persistence.TransactionSizeLimitError: