Skip to content

Commit

Permalink
Improved panic message when MutableSideEffect not found during replay (
Browse files Browse the repository at this point in the history
  • Loading branch information
algobardo authored and mfateev committed May 3, 2019
1 parent e36f385 commit c99d7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/internal_event_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func (wc *workflowEnvironmentImpl) MutableSideEffect(id string, f func() interfa

if wc.isReplay {
// This should not happen
panic("MutableSideEffect with given ID not found during replay")
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))
}

return wc.recordMutableSideEffect(id, wc.encodeValue(f()))
Expand Down

0 comments on commit c99d7e5

Please sign in to comment.