mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-28 01:29:02 +00:00
add error handling for OSC address and bad arg type encoding
This commit is contained in:
@@ -240,7 +240,7 @@ func argsToBuffer(args []OSCArg) ([]byte, error) {
|
||||
fmt.Println("OSC arg had float type but non-float value.")
|
||||
}
|
||||
default:
|
||||
fmt.Printf("unhandled osc type: %s.\n", oscType)
|
||||
return nil, fmt.Errorf("unsupported OSC argument type: %s", oscType)
|
||||
}
|
||||
}
|
||||
return argBuffers, nil
|
||||
|
||||
Reference in New Issue
Block a user