From 9ff76ad97e4571698ad4bfc7f4ea6a501b185b1e Mon Sep 17 00:00:00 2001 From: johan Date: Wed, 13 Nov 2013 23:48:00 +0100 Subject: [PATCH] More specific error message added Former-commit-id: a754822d72a7a7fbf68b923423cc9beb5eb74194 --- deploy/hyperiond.REMOVED.git-id | 2 +- libsrc/hyperion/device/LedDeviceLightpack.cpp | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/deploy/hyperiond.REMOVED.git-id b/deploy/hyperiond.REMOVED.git-id index 25676c67..a1c3f66b 100644 --- a/deploy/hyperiond.REMOVED.git-id +++ b/deploy/hyperiond.REMOVED.git-id @@ -1 +1 @@ -265d49d7ea3ac292bf6406132955c3c1bf610509 \ No newline at end of file +ebda31a60195d645efb523164516c049a2f9b823 \ No newline at end of file diff --git a/libsrc/hyperion/device/LedDeviceLightpack.cpp b/libsrc/hyperion/device/LedDeviceLightpack.cpp index 475148ee..3e41787c 100644 --- a/libsrc/hyperion/device/LedDeviceLightpack.cpp +++ b/libsrc/hyperion/device/LedDeviceLightpack.cpp @@ -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;