Skip to content

Conversation

@pepone
Copy link
Member

@pepone pepone commented Sep 30, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a linter issue by updating the Ice.DispatchException call to use the proper enum value access pattern.

  • Corrects enum usage by accessing the .value attribute of Ice.ReplyStatus.Unauthorized

# Note: This is a demo; no real authentication logic is implemented.
raise Ice.DispatchException(
Ice.ReplyStatus.Unauthorized, "Invalid credentials. The administrator has been notified."
Ice.ReplyStatus.Unauthorized.value, "Invalid credentials. The administrator has been notified."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DispatchException doesn't accept a ReplyStatus enumerator but an int, this is required because not all accepted values are defined.

@pepone pepone merged commit 2c8ac0e into zeroc-ice:main Sep 30, 2025
14 of 15 checks passed
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.

3 participants