diff options
Diffstat (limited to 'qdb/server/usb-host/usbconnection.cpp')
-rw-r--r-- | qdb/server/usb-host/usbconnection.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qdb/server/usb-host/usbconnection.cpp b/qdb/server/usb-host/usbconnection.cpp index 3998aa8..3c8f3e4 100644 --- a/qdb/server/usb-host/usbconnection.cpp +++ b/qdb/server/usb-host/usbconnection.cpp @@ -84,7 +84,12 @@ bool UsbConnection::open(OpenMode mode) ret = libusb_open(m_device.pointer(), &m_handle); if (ret) { - qCDebug(usbC) << "Could not open device:" << libusb_error_name(ret); + if (ret == LIBUSB_ERROR_ACCESS) { + qCWarning(usbC) << "Access to USB device was denied." + << "Check the manual for setting up access to USB devices."; + } else { + qCWarning(usbC) << "Could not open device:" << libusb_error_name(ret); + } return false; } |