add non-opaque error on hue connect failed.
This commit is contained in:
Binary file not shown.
@@ -348,7 +348,7 @@ func (b *Bridge) SetStates(patch map[string]device.State) {
|
|||||||
func (b *Bridge) Run(ctx context.Context, bus *lucifer3.EventBus) interface{} {
|
func (b *Bridge) Run(ctx context.Context, bus *lucifer3.EventBus) interface{} {
|
||||||
hwEvents, err := b.RefreshAll()
|
hwEvents, err := b.RefreshAll()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("failed to connect to bridge")
|
return fmt.Errorf("failed to connect to bridge: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
bus.RunEvent(events.Log{
|
bus.RunEvent(events.Log{
|
||||||
|
|||||||
Reference in New Issue
Block a user