summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-11-05 20:09:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-11-05 20:09:28 +0000
commitfce2aad4f3be6fd389a6f923efca10535539fcc9 (patch)
tree8d0dcb82c7f5e1fdcb71af36c021103720f02314
parentUse a slightly less surprising DB connection pool name (diff)
downloadp2pvr-fce2aad4f3be6fd389a6f923efca10535539fcc9.tar.bz2
p2pvr-fce2aad4f3be6fd389a6f923efca10535539fcc9.tar.xz
p2pvr-fce2aad4f3be6fd389a6f923efca10535539fcc9.zip
Improve error message when getTuner fails to open/tune a tuner
-rw-r--r--p2pvr/devices/devices.cpp6
1 files 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__,