Skip to content

Commit

Permalink
Say found before adding, if thats where we are at
Browse files Browse the repository at this point in the history
  • Loading branch information
hilli committed Jan 14, 2024
1 parent 76de16f commit 0ca08af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kefw2/cmd/config_speaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ var speakerDiscoverCmd = &cobra.Command{
return
}
for _, speaker := range newSpeakers {
fmt.Printf("Found speaker: %s (%s)\n", speaker.Name, speaker.IPAddress)
if save {
if err := addSpeaker(speaker.IPAddress); err != nil {
fmt.Printf("Error adding speaker (%s): %s\n", speaker.IPAddress, err)
}
}
fmt.Printf("Found speaker: %s (%s)\n", speaker.Name, speaker.IPAddress)
}
},
}
Expand Down

0 comments on commit 0ca08af

Please sign in to comment.