Skip to content

Commit

Permalink
Better error message when handling unknown serial
Browse files Browse the repository at this point in the history
  • Loading branch information
sebo-b committed Aug 4, 2019
1 parent dca7f03 commit b0e46b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tic_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ bool TicConnection::Connect()
tic_list_free(deviceList);

if (!handle) {
LOG_ERROR("No TIC device found.");
if (requiredSerialNumber.empty())
LOG_ERROR("No TIC device found.");
else
LOGF_ERROR("No TIC device found with serial: %s. You can set serial to empty to connect to the first found Tic device.", requiredSerialNumber.c_str());
return false;
}

Expand Down

0 comments on commit b0e46b5

Please sign in to comment.