Skip to content

Commit c99d7e5

Browse files
algobardomfateev
authored andcommitted
Improved panic message when MutableSideEffect not found during replay (#656)
1 parent e36f385 commit c99d7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/internal_event_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ func (wc *workflowEnvironmentImpl) MutableSideEffect(id string, f func() interfa
569569

570570
if wc.isReplay {
571571
// This should not happen
572-
panic("MutableSideEffect with given ID not found during replay")
572+
panic(fmt.Sprintf("Non deterministic workflow code change detected. MutableSideEffect API call doesn't have a correspondent event in the workflow history. MutableSideEffect ID: %s", id))
573573
}
574574

575575
return wc.recordMutableSideEffect(id, wc.encodeValue(f()))

0 commit comments

Comments
 (0)