1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Attempt to get a useful error string when we cannot connect to a USB device;

Fix typo.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3056 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
jonathan 2011-03-21 00:50:15 +00:00 committed by jonathan
parent 160695e546
commit baf848d4f0

View File

@ -119,7 +119,8 @@ bool ConnectionManager::connectDevice()
// check if opening the device worked
if (!io_dev->isOpen())
{
qDebug() << "Error: io_dev->isOpen() returned FALSE .. could not open connection too " << connection_device.devName;
qDebug() << "Error: io_dev->isOpen() returned FALSE .. could not open connection to " << connection_device.devName
<< ": " << io_dev->errorString();
// close the device
try