Skip to content

Commit

Permalink
client: add idx to error
Browse files Browse the repository at this point in the history
  • Loading branch information
betamos committed Jul 9, 2024
1 parent bf290f7 commit 41d9de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ func (c *Client) broadcastQuery() error {
for _, iface := range c.conn.ifaces {
c.conn.SetWriteDeadline(time.Now().Add(writeTimeout))
err := c.conn.WriteMulticast(m, iface.Index, nil)
errs = append(errs, err)
if err != nil {
errs = append(errs, fmt.Errorf("idx %v: %w", iface.Index, err))
}
}

return errors.Join(errs...)
Expand Down

0 comments on commit 41d9de8

Please sign in to comment.