Error handling on dag creation

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
Itxaka
2023-02-04 11:18:13 +01:00
parent 93ceae89a2
commit 8a916f4999
2 changed files with 52 additions and 16 deletions

View File

@@ -28,10 +28,14 @@ Sends a generic event payload with the configuration found in the scanned direct
s := &mount.State{Logger: log.Logger, Rootdir: "/"}
s.Register(g)
err := s.Register(g)
if err != nil {
s.Logger.Err(err)
return err
}
log.Print(s.WriteDAG(g))
return nil
return err
//return g.Run(context.Background())
},
},