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

Add failure description (from errno) when failing to open device #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ola1olsson
Copy link

Maybe I should throw an FileOpenError instead? Anyway, not having this error message cost me 30 minutes today and I don't want anyone else feel as stupid as I did when I noticed it was a permission problem.

Maybe I should throw an FileOpenError instead?
@shumatech
Copy link
Owner

I need to rework the error reporting out of the open() methods in the SerialPort classes so as not to expose higher level code to its implementation. I'm thinking either an exception or a last error cause method.

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.

2 participants