Improved Error Type (more specificity, fewer semver hazards, etc...) #112
Labels
API-ergonomics
Nothing's "broken", but the API could be improved
design-required
Getting this right will require some thought
documentation
Improvements or additions to documentation
I recently started experimenting with this crate for AVR. When implementing the target I ran into
TargetMismatch
errors . The information in those errors was not enough for me to fix the issues—I had to dig through the source code instead.The first issue was that
Arch::Usize
was different from what GDB send. To fix the issue I needed to know what GDB expected. The second issue was thatArch::BreakpointKind
kind was different from what GDB sent. (I assumed that it would be()
).What would have helped me to fix this issues faster is an error message pointing to what to fix and how to fix it.
(Happy to provide a PR for this if you want me to.)
The text was updated successfully, but these errors were encountered: