mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
1e771ef42b
Previously, if a caller passed deviceId or deviceName and the filter produced an empty list, selectTarget silently kept the unfiltered candidates and returned the first target — silently routing every CDP/debugger/profiler call to the wrong physical device. The function now throws with the requested id and the available logicalDeviceIds/deviceNames so the misroute fails loudly at the source.