I could not call open() on one of my devices, and got only an undefined error object in the catch. The correct error LIBUSB_ERROR_ACCESS would have helped me to easily understand that I would have to call my script as root. This PR raises the catched error.
I could not call
open()
on one of my devices, and got only anundefined
error object in the catch. The correct errorLIBUSB_ERROR_ACCESS
would have helped me to easily understand that I would have to call my script as root. This PR raises the catched error.