diff --git a/osc.go b/osc.go index 3465ccb..a00230e 100644 --- a/osc.go +++ b/osc.go @@ -440,8 +440,7 @@ func readOSCArg(bytes []byte, oscType string) (OSCArg, []byte, error) { oscArg.Value = argTimeTag remainingBytes = bytesLeft default: - fmt.Printf("unsupported osc type: %s\n", oscType) - readArgError = errors.New("unsupported OSC argument type: " + oscType) + return OSCArg{}, bytes, fmt.Errorf("unsupported OSC argument type: %s", oscType) } return oscArg, remainingBytes, readArgError }