From fce2aad4f3be6fd389a6f923efca10535539fcc9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Nov 2017 20:09:28 +0000 Subject: Improve error message when getTuner fails to open/tune a tuner --- p2pvr/devices/devices.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2pvr/devices/devices.cpp b/p2pvr/devices/devices.cpp index 9169c96..a9fb214 100644 --- a/p2pvr/devices/devices.cpp +++ b/p2pvr/devices/devices.cpp @@ -87,9 +87,9 @@ DevicesI::getTuner(const DVBSI::DeliveryPtr & delivery) devices.erase(devItr); return tuner; } - catch (...) { - logger->messagebf(LOG::DEBUG, "%s: Failed to open and tune device %s to frequency %d", __PRETTY_FUNCTION__, - *devItr, delivery->Frequency); + catch (const std::exception & ex) { + logger->messagebf(LOG::DEBUG, "%s: Failed to open and tune device %s (%s) to frequency %d", __PRETTY_FUNCTION__, + *devItr, ex.what(), delivery->Frequency); } } logger->messagebf(LOG::DEBUG, "%s: Failed to open and tune any device to frequency %d", __PRETTY_FUNCTION__, -- cgit v1.2.3