summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-15 21:26:00 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-15 21:26:00 +0200
commit590ed0fb4a5d7edab4f3cae8342fd89b7d9c4491 (patch)
treec3d6619cf759e5f8dd403f075d70e71b9d86fb74
parent4e2ad1eac476219f06503373cebb449b0dc398ba (diff)
FSM: Return if no debug graph file could be created
-rw-r--r--internal/fsm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/fsm.go b/internal/fsm.go
index b52b463..4df24a0 100644
--- a/internal/fsm.go
+++ b/internal/fsm.go
@@ -147,6 +147,7 @@ func (fsm *FSM) writeGraph() {
f, err := os.Create(graphFile)
if err != nil {
fsm.Logger.Log(LOG_INFO, fmt.Sprintf("Failed to write debug fsm graph with error %v", err))
+ return
}
f.WriteString(graph)