diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:29:37 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:39:21 +0100 |
| commit | 7aca778d6433373b5c65d4172b28a4461239e3f8 (patch) | |
| tree | 3dd6cd79c74298d80880d9483be54a44eeba7138 /internal/fsm | |
| parent | e947582c9819358e647b8066d13b8ae80aa51ebf (diff) | |
FSM: Include state name in error message
Diffstat (limited to 'internal/fsm')
| -rw-r--r-- | internal/fsm/fsm.go | 2 |
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. |
