mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-24 15:58:59 +00:00
return on unsupported arg
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user