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

UART backend: check access permissions #60

Open
koenenwmn opened this issue May 4, 2018 · 1 comment
Open

UART backend: check access permissions #60

koenenwmn opened this issue May 4, 2018 · 1 comment

Comments

@koenenwmn
Copy link
Contributor

Currently, when the user has no write permissions the communication fails with:

glip: gb_uart_open: Cannot open device /dev/ttyUSB0
glip: glip_open: Cannot open backend (rv=-1)
ERROR: Cannot open backend

It would be nice to check the permissions first and give a more descriptive message about the cause of the problem.

@imphil
Copy link
Member

imphil commented May 4, 2018

Better check the permissions after the opening failed to give a more helpful error message, but avoiding corner cases where our checking fails but the device can still be opened.

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