diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-08 20:46:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-08-08 20:46:30 +0100 |
commit | af205fe14ed90e97a2094e1672cc6171d574b9f0 (patch) | |
tree | d13c3a06a8eb431d148e537f03b10ccafdf3892b | |
parent | Support passing a frontend instance into a tuner (easier testing) (diff) | |
download | p2pvr-af205fe14ed90e97a2094e1672cc6171d574b9f0.tar.bz2 p2pvr-af205fe14ed90e97a2094e1672cc6171d574b9f0.tar.xz p2pvr-af205fe14ed90e97a2094e1672cc6171d574b9f0.zip |
Explain yourself! (when opening a device fails)
-rw-r--r-- | p2pvr/devices/devices.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2pvr/devices/devices.cpp b/p2pvr/devices/devices.cpp index 8cd9a74..9169c96 100644 --- a/p2pvr/devices/devices.cpp +++ b/p2pvr/devices/devices.cpp @@ -56,9 +56,9 @@ DevicesI::getTuner() devices.erase(devItr); return tuner; } - catch (...) { - logger->messagebf(LOG::DEBUG, "%s: Failed to open device %s", __PRETTY_FUNCTION__, - *devItr); + catch (const std::exception & ex) { + logger->messagebf(LOG::DEBUG, "%s: Failed to open device %s (%s)", __PRETTY_FUNCTION__, + *devItr, ex.what()); } } throw NoSuitableDeviceAvailable(); |