remote: usb: print "access denied" error
authorSean Cross <sean@xobs.io>
Tue, 21 May 2019 01:35:09 +0000 (02:35 +0100)
committerSean Cross <sean@xobs.io>
Tue, 21 May 2019 01:36:18 +0000 (09:36 +0800)
commit014c9505800c4c41bcddcd0a1352d9a959aaf2a7
tree46523286de63f76f2f97df73528b5f76b3292d31
parentfaf6554c895b76cb6f5d3747b72f34b2f90c4c3a
remote: usb: print "access denied" error

When we get an error with errno 13, it means that the user doesn't
have access to the USB device.  Rather than silently eating this
error and returning -1, print out a message to aid in debugging.

Signed-off-by: Sean Cross <sean@xobs.io>
litex/tools/remote/comm_usb.py