More specific error message added

Former-commit-id: a754822d72a7a7fbf68b923423cc9beb5eb74194
This commit is contained in:
johan 2013-11-13 23:48:00 +01:00
parent efa21214e3
commit 9ff76ad97e
2 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
265d49d7ea3ac292bf6406132955c3c1bf610509
ebda31a60195d645efb523164516c049a2f9b823

View File

@ -191,7 +191,14 @@ int LedDeviceLightpack::open()
}
else
{
std::cerr << "No Lightpack device has been found" << std::endl;
if (_serialNumber.empty())
{
std::cerr << "No Lightpack device has been found" << std::endl;
}
else
{
std::cerr << "No Lightpack device has been found with serial " << _serialNumber << std::endl;
}
}
return _deviceHandle == nullptr ? -1 : 0;