Skip to content

Commit

Permalink
EEBus: return errors to caller
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jun 27, 2022
1 parent 08ddb1b commit bed0a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/configure/eebus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bed0a26

Please sign in to comment.