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

error message not clear when wrong ENUM value #57

Open
vnadot opened this issue Jun 21, 2022 · 1 comment
Open

error message not clear when wrong ENUM value #57

vnadot opened this issue Jun 21, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vnadot
Copy link
Contributor

vnadot commented Jun 21, 2022

I caput my PV to a wrong a num ( 'nf=0 => 0 ns' instead of ' 'nf=0 => (no filter)'. I got the warning/error but the message is not clear and so it took me a lot of time to understand that the ENUM value was not correct.

[setter error] invalid literal for int() with base 0: 'nf=0 => 0 ns'

image

@vnadot vnadot added the enhancement New feature or request label Jun 21, 2022
@gohierf
Copy link
Contributor

gohierf commented Jun 21, 2022

Not very clear indeed... I guess this is the error coming from pyepics, when trying to set a wrong ENUM value.

I agree we could catch it and suffix with "(wrong ENUM)" if we can somehow differentiate with other setter errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants