From a5ac419e3ef2cde22f81d83abe2c85371b4e328c Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 29 Apr 2026 13:41:42 -0500 Subject: [PATCH] return on unsupported arg --- osc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }