add error handling for OSC address and bad arg type encoding

This commit is contained in:
Joel Wetzell
2026-04-13 18:48:50 -05:00
parent 4744321d71
commit 2548771fe3
3 changed files with 51 additions and 3 deletions
+1 -1
View File
@@ -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