EEBus: return errors to caller

This commit is contained in:
andig 2022-06-27 08:46:50 +02:00
parent 08ddb1bfb2
commit bed0a26260
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,7 @@ func (c *CmdConfigure) configureEEBus(conf map[string]interface{}) error {
shutdown.Register(server.EEBusInstance.Shutdown)
}
return nil
return err
}
// eebusCertificate creates EEBUS certificate and returns private/public key

View file

@ -130,9 +130,11 @@ func configureEEBus(conf map[string]interface{}) error {
if server.EEBusInstance, err = server.NewEEBus(conf); err == nil {
go server.EEBusInstance.Run()
shutdown.Register(server.EEBusInstance.Shutdown)
} else {
err = fmt.Errorf("eebus: %w", err)
}
return nil
return err
}
// setup messaging