Skip to content

Commit

Permalink
fix: Exit with an error if DNS lookup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 15, 2023
1 parent de013b6 commit 6a05ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func run(cmd *cobra.Command, args []string) (err error) {

entries, err := castdns.DiscoverCastDNSEntries(ctx, iface)
if err != nil {
slog.Error("Failed to fetch devices", "error", err.Error())
return err
}

var group sync.WaitGroup
Expand Down

0 comments on commit 6a05ea6

Please sign in to comment.