Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slicing out of logical bounds returns unclear error #154

Open
BrianMichell opened this issue Jan 31, 2025 · 0 comments
Open

Slicing out of logical bounds returns unclear error #154

BrianMichell opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation Improvement Something could be better

Comments

@BrianMichell
Copy link
Collaborator

If a user slices outside of the logical bounds the current error is not clear what the issue was.

It should be enhanced to display the bounds.

https://github.com/TGSAI/mdio-cpp/blob/838538df4bd796994e656126767b379d2ca7d904/mdio/variable.h#L1095C7-L1100C44

@BrianMichell BrianMichell added documentation Improvements or additions to documentation Improvement Something could be better labels Jan 31, 2025
@BrianMichell BrianMichell self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Improvement Something could be better
Projects
None yet
Development

No branches or pull requests

1 participant