Include invalid value in address prefix error message

This commit is contained in:
Ian Gulliver
2026-01-29 12:12:30 -08:00
parent 2dd77f1320
commit 52d069b5b8

View File

@@ -271,7 +271,7 @@ func splitProtoPrefix(s string) (Protocol, string, error) {
if strings.HasPrefix(s, "sacn:") {
return ProtocolSACN, s[5:], nil
}
return "", "", fmt.Errorf("address must start with 'artnet:' or 'sacn:' prefix")
return "", "", fmt.Errorf("address %q must start with 'artnet:' or 'sacn:' prefix", s)
}
func splitAddr(s string) (universe, channel string) {