From 85d8dc57877fe28e6cd38edef5efb7c27dc80587 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 20 Dec 2025 14:18:56 -0600 Subject: [PATCH] cleanup error messages --- internal/module/udp-multicast.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/module/udp-multicast.go b/internal/module/udp-multicast.go index 2eb9d67..7195e97 100644 --- a/internal/module/udp-multicast.go +++ b/internal/module/udp-multicast.go @@ -28,24 +28,24 @@ func init() { ip, ok := params["ip"] if !ok { - return nil, fmt.Errorf("net.udp.client requires am ip parameter") + return nil, fmt.Errorf("net.udp.multicast requires an ip parameter") } ipString, ok := ip.(string) if !ok { - return nil, fmt.Errorf("net.udp.client ip must be a string") + return nil, fmt.Errorf("net.udp.multicast ip must be a string") } port, ok := params["port"] if !ok { - return nil, fmt.Errorf("net.udp.client requires a port parameter") + return nil, fmt.Errorf("net.udp.multicast requires a port parameter") } portNum, ok := port.(float64) if !ok { - return nil, fmt.Errorf("net.udp.client port must be a number") + return nil, fmt.Errorf("net.udp.multicast port must be a number") } addr, err := net.ResolveUDPAddr("udp", fmt.Sprintf("%s:%d", ipString, uint16(portNum)))