From 590ed0fb4a5d7edab4f3cae8342fd89b7d9c4491 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Sun, 15 May 2022 21:26:00 +0200 Subject: FSM: Return if no debug graph file could be created --- internal/fsm.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal') 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) -- cgit v1.2.3