binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

[Rust API] Better return values for errors

Open ElykDeer opened this issue 3 years ago • 1 comments

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.

ElykDeer avatar Jul 06 '22 18:07 ElykDeer

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

emesare avatar Aug 05 '24 16:08 emesare