add error handling to arg encoding and message/bundle ToBytes()

This commit is contained in:
Joel Wetzell
2026-04-13 18:38:25 -05:00
parent 1130adf046
commit 4744321d71
9 changed files with 169 additions and 62 deletions
+4 -1
View File
@@ -208,7 +208,10 @@ func send(host string, port int32, address string, args []string, types []string
}
oscMessageBuffer := oscMessage.ToBytes()
oscMessageBuffer, err := oscMessage.ToBytes()
if err != nil {
panic(err)
}
if slip {
oscMessageBuffer = slipEncode(oscMessageBuffer)