mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-03 07:34:23 +00:00
Error handling on dag creation
Signed-off-by: Itxaka <itxaka@spectrocloud.com>
This commit is contained in:
@@ -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())
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user