add non-opaque error on hue connect failed.

This commit is contained in:
2024-10-06 16:19:04 +02:00
parent 16c6d5316b
commit c2f3d3c4d1
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -348,7 +348,7 @@ func (b *Bridge) SetStates(patch map[string]device.State) {
func (b *Bridge) Run(ctx context.Context, bus *lucifer3.EventBus) interface{} {
hwEvents, err := b.RefreshAll()
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{