summaryrefslogtreecommitdiff
path: root/internal/fsm
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-21 13:46:41 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commitae4c58d37d6cb284b3c1cddb2502fabbd8106898 (patch)
tree754085761cafc4dbb3a2627fd34cc90adb742654 /internal/fsm
parent44fb5cd0188f79f9729c41e3dc4ff86217becf8b (diff)
FSM: Add more context to required transition error
Diffstat (limited to 'internal/fsm')
-rw-r--r--internal/fsm/fsm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go
index 09712d3..3cc8edb 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -132,7 +132,7 @@ func (fsm *FSM) writeGraph() {
func (fsm *FSM) GoTransitionRequired(newState StateID, data interface{}) error {
oldState := fsm.Current
if !fsm.GoTransitionWithData(newState, data) {
- return errors.Errorf("fsm failed transition from '%v' to '%v'", fsm.GetStateName(oldState), fsm.GetStateName(newState))
+ return errors.Errorf("fsm failed transition from '%v' to '%v', is this required transition handled?", fsm.GetStateName(oldState), fsm.GetStateName(newState))
}
return nil
}