From af205fe14ed90e97a2094e1672cc6171d574b9f0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 8 Aug 2017 20:46:30 +0100 Subject: Explain yourself! (when opening a device fails) --- 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 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(); -- cgit v1.2.3