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

Confusing error on invalid on_usb_connect setting #64

Closed
dbr opened this issue Jul 7, 2021 · 0 comments
Closed

Confusing error on invalid on_usb_connect setting #64

dbr opened this issue Jul 7, 2021 · 0 comments

Comments

@dbr
Copy link

dbr commented Jul 7, 2021

Thanks for this tool, works nicely! One minor thing I encountered while setting it up: if on_usb_connect = "Hdmi1" is set to an invalid value (e.g in my case I guessed "Dp1" before noticing it should be "DisplayPort1"), the error is unhelpful in working out what the cause is:

$ cargo run --
[...]
Error: failed to load configuration

Caused by:
    ParseIntError { kind: InvalidDigit }

This should at least mention the configuration option at fault, and ideally maybe give a list of the available options?

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

No branches or pull requests

2 participants