Skip to content

Commit

Permalink
Fix error conversion for WorkflowExecutionAlreadyStartedError (uber#4838
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Shaddoll authored May 20, 2022
1 parent 535cda8 commit 48a157e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 48a157e

Please sign in to comment.