Open BenLeadbetter opened 3 months ago
I would propose a solution where we create a dedicated coremidi::Error
type, which has a method to retrieve the OS status code value.
This would likely be a "breaking change", but perhaps this isn't so bad if the crate is still in the 0.*.*
phase.
Improve error types
Most
Result
return values use ani32
(anOSStatus
) as their error variant. This is not ideal for a couple of reasonsi32
doesn't implementstd::error::Error
soResult
values from core midi aren't compatible with a lot of common error handling patterns (e.g. anyhow)