binaryninja-api
binaryninja-api copied to clipboard
[Rust API] Better return values for errors
As it stands we just return Err(()) in a lot of places. We should replace all those with more informative errors.
See discussion in #2976, there's also a lot of related discussion lost to public slack history.
Another one is returning empty vecs instead of errors or optional values https://github.com/Vector35/binaryninja-api/blob/ce5995c3b8c8765811521d9d9f0eadcf3b601415/rust/src/interaction.rs#L531