UHDDevice: log exception information on device open failure

Change-Id: Ia84ddcf50cc83f9326b22bfdfb4f259b4e0bc5f1
This commit is contained in:
d0gtail 2018-12-01 17:02:15 +01:00 committed by Pau Espin Pedrol
parent 55928f23cb
commit ebb37693a5
1 changed files with 2 additions and 2 deletions

View File

@ -635,8 +635,8 @@ int uhd_device::open(const std::string &args, int ref, bool swap_channels)
LOGC(DDEV, INFO) << "Using discovered UHD device " << dev_addrs[0].to_string();
try {
usrp_dev = uhd::usrp::multi_usrp::make(addr);
} catch(...) {
LOGC(DDEV, ALERT) << "UHD make failed, device " << args;
} catch(uhd::key_error::exception &e) {
LOGC(DDEV, ALERT) << "UHD make failed, device " << args << ", exception:\n" << e.what();
return -1;
}