File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -545,9 +545,9 @@ func (wh *WorkflowHandler) ExecuteMultiOperation(
545545 if err != nil {
546546 var multiErr * serviceerror.MultiOperationExecution
547547 if errors .As (err , & multiErr ) {
548- // Trim error message for end-users.
548+ // Tweak error message for end-users to match the feature name .
549549 // The per-operation errors are embedded inside the error and unpacked by the SDK.
550- multiErr .Message = "MultiOperation could not be executed."
550+ multiErr .Message = "Update-with-Start could not be executed."
551551 }
552552 return nil , err
553553 }
@@ -590,7 +590,7 @@ func (wh *WorkflowHandler) convertToHistoryMultiOperationRequest(
590590 }
591591
592592 if hasError {
593- return nil , serviceerror .NewMultiOperationExecution ("MultiOperation could not be executed." , errs )
593+ return nil , serviceerror .NewMultiOperationExecution ("Update-with-Start could not be executed." , errs )
594594 }
595595
596596 return & historyservice.ExecuteMultiOperationRequest {
Original file line number Diff line number Diff line change @@ -3401,7 +3401,7 @@ func (s *WorkflowHandlerSuite) TestExecuteMultiOperation() {
34013401 })
34023402
34033403 assertMultiOpsErr := func (expectedErrs []error , actual error ) {
3404- s .Equal ("MultiOperation could not be executed." , actual .Error ())
3404+ s .Equal ("Update-with-Start could not be executed." , actual .Error ())
34053405 s .EqualValues (expectedErrs , actual .(* serviceerror.MultiOperationExecution ).OperationErrors ())
34063406 }
34073407
Original file line number Diff line number Diff line change @@ -5309,7 +5309,7 @@ func (s *UpdateWorkflowSuite) TestUpdateWithStart() {
53095309 uwsCh := sendUpdateWithStart (testcore .NewContext (), startReq , updateReq )
53105310 uwsRes := <- uwsCh
53115311 s .Error (uwsRes .err )
5312- s .Equal ("MultiOperation could not be executed." , uwsRes .err .Error ())
5312+ s .Equal ("Update-with-Start could not be executed." , uwsRes .err .Error ())
53135313 errs := uwsRes .err .(* serviceerror.MultiOperationExecution ).OperationErrors ()
53145314 s .Len (errs , 2 )
53155315 var alreadyStartedErr * serviceerror.WorkflowExecutionAlreadyStarted
@@ -5488,7 +5488,7 @@ func (s *UpdateWorkflowSuite) TestUpdateWithStart() {
54885488
54895489 uwsRes := <- uwsCh
54905490 s .Error (uwsRes .err )
5491- s .Equal ("MultiOperation could not be executed." , uwsRes .err .Error ())
5491+ s .Equal ("Update-with-Start could not be executed." , uwsRes .err .Error ())
54925492 errs := uwsRes .err .(* serviceerror.MultiOperationExecution ).OperationErrors ()
54935493 s .Len (errs , 2 )
54945494 s .Contains (errs [0 ].Error (), "Workflow execution already finished" )
You can’t perform that action at this time.
0 commit comments