In this PR we improve the diagnostics presented to the user when there is no probe found connected to the system, turning the "crash" output into a nice error print and exit.
For example:
❯ target/debug/bmputil-cli probe info
Error: ------------[ ✂ cut here ✂ ]------------
Unhandled crash in bmputil-cli v1.0.0
0: Black Magic Probe device not found (check connection?)
Location:
src/bin/bmputil-cli.rs:592
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Please include all lines down to this one from the cut here
marker, and report this issue to our issue tracker at
https://codeberg.org/blackmagic-debug/bmputil/issues
becomes
❯ target/debug/bmputil-cli probe info
[2026年04月04日T11:34:39Z ERROR bmputil::bmp_matcher] Black Magic Probe device not found (check connection?)
This is done for all of the paths which use BmpMatcher and thus BmpMatchResults.
In this PR we improve the diagnostics presented to the user when there is no probe found connected to the system, turning the "crash" output into a nice error print and exit.
For example:
```
❯ target/debug/bmputil-cli probe info
Error: ------------[ ✂ cut here ✂ ]------------
Unhandled crash in bmputil-cli v1.0.0
0: Black Magic Probe device not found (check connection?)
Location:
src/bin/bmputil-cli.rs:592
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Please include all lines down to this one from the cut here
marker, and report this issue to our issue tracker at
https://codeberg.org/blackmagic-debug/bmputil/issues
```
becomes
```
❯ target/debug/bmputil-cli probe info
[2026年04月04日T11:34:39Z ERROR bmputil::bmp_matcher] Black Magic Probe device not found (check connection?)
```
This is done for all of the paths which use BmpMatcher and thus BmpMatchResults.