EEBus: return errors to caller
This commit is contained in:
parent
08ddb1bfb2
commit
bed0a26260
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue