Skip to content

Commit 766ce10

Browse files
committed
qt: Added USB device name to error message
1 parent 6dd6438 commit 766ce10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qt/programmer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ int Programmer::serialPortConnect()
3131

3232
if (!serialPort.open(QIODevice::ReadWrite))
3333
{
34-
qCritical() << "Failed to open serial port:"
35-
<< serialPort.errorString();
34+
qCritical() << "Failed to open serial port " << usbDevName << ": " <<
35+
serialPort.errorString();
3636
return -1;
3737
}
3838

0 commit comments

Comments
 (0)