Skip to content

fix: include available device IDs in device lookup error messages#325

Open
nuthalapativarun wants to merge 1 commit intomicrosoft:pre-releasefrom
nuthalapativarun:fix/device-lookup-error-messages
Open

fix: include available device IDs in device lookup error messages#325
nuthalapativarun wants to merge 1 commit intomicrosoft:pre-releasefrom
nuthalapativarun:fix/device-lookup-error-messages

Conversation

@nuthalapativarun
Copy link
Copy Markdown

Summary

When a caller passes an unknown device ID to assign_task_to_device, connect_device, or get_device_status, the previous error messages ("Device X is not registered") gave no hint of what valid IDs exist, making debugging difficult in multi-device constellation setups.

Changes

Updated three error paths in galaxy/client/device_manager.py to include the full list of currently registered device IDs:

  • connect_device — log message now includes available_device_ids
  • assign_task_to_deviceValueError message now includes available_device_ids
  • get_device_status — returned error dict now includes available_device_ids

Testing

Verified that calls with an unrecognised device ID now produce messages such as:

Device 'device-999' is not registered. Available device IDs: ['device-1', 'device-2']

When a caller passes an unknown device ID to assign_task_to_device,
connect_device, or get_device_status, the previous error messages
("Device X is not registered") gave no hint of what valid IDs exist.

Include the full list of registered device IDs in every not-found
error so callers can immediately see the valid options without
additional debugging.
@nuthalapativarun
Copy link
Copy Markdown
Author

Hi team — gentle ping on this PR. Happy to rebase or address any feedback if needed. Let me know if there's anything blocking review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant