probe-rs icon indicating copy to clipboard operation
probe-rs copied to clipboard

Weird error message when a target is not connected or unpowered

Open korken89 opened this issue 5 years ago • 3 comments

Describe the bug Probe-rs generates the following error when a target is not connected (or un-powered):

Error: An error with the usage of the probe occured

Caused by:
    0: An error specific to the selected architecture occured
    1: An error occured in the SWD communication between DAPlink and device.

To Reproduce Steps to reproduce the behavior:

  1. Have no target connected
  2. Use a download command eg download_file_with_options

Expected behavior An error message that says that the target cannot be found.

Desktop (please complete the following information):

  • Arch Linux

korken89 avatar Dec 15 '20 15:12 korken89

Hmm I am aware of this message, but reading it with the 2024 me, the message seems correct 🤔

Yatekii avatar Apr 27 '24 10:04 Yatekii

Definitely correct from an accuracy perspective. Is it helpful from a UX perspective?

noppej avatar Apr 27 '24 15:04 noppej

A more specific "cannot find a device" error message would definitely be more helpful, if possible.

BartMassey avatar Jun 02 '24 15:06 BartMassey