return on unsupported arg

This commit is contained in:
Joel Wetzell
2026-04-29 13:41:42 -05:00
parent 3b66c38d18
commit a5ac419e3e
+1 -2
View File
@@ -440,8 +440,7 @@ func readOSCArg(bytes []byte, oscType string) (OSCArg, []byte, error) {
oscArg.Value = argTimeTag oscArg.Value = argTimeTag
remainingBytes = bytesLeft remainingBytes = bytesLeft
default: default:
fmt.Printf("unsupported osc type: %s\n", oscType) return OSCArg{}, bytes, fmt.Errorf("unsupported OSC argument type: %s", oscType)
readArgError = errors.New("unsupported OSC argument type: " + oscType)
} }
return oscArg, remainingBytes, readArgError return oscArg, remainingBytes, readArgError
} }