summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-12 13:29:37 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-12 13:39:21 +0100
commit7aca778d6433373b5c65d4172b28a4461239e3f8 (patch)
tree3dd6cd79c74298d80880d9483be54a44eeba7138
parente947582c9819358e647b8066d13b8ae80aa51ebf (diff)
FSM: Include state name in error message
-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 6c8923b..18c26ca 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -113,7 +113,7 @@ func (fsm *FSM) CheckTransition(desired StateID) error {
return nil
}
}
- return errors.Errorf("fsm invalid transition attempt from '%v' to '%v'", fsm.Current, desired)
+ return errors.Errorf("fsm invalid transition attempt from '%s' to '%s'", fsm.GetStateName(fsm.Current), fsm.GetStateName(desired))
}
// graphFilename gets the full path to the graph filename including the .graph extension.