UHDDevice: log exception information on device open failure
Change-Id: Ia84ddcf50cc83f9326b22bfdfb4f259b4e0bc5f1
This commit is contained in:
parent
55928f23cb
commit
ebb37693a5
|
@ -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();
|
LOGC(DDEV, INFO) << "Using discovered UHD device " << dev_addrs[0].to_string();
|
||||||
try {
|
try {
|
||||||
usrp_dev = uhd::usrp::multi_usrp::make(addr);
|
usrp_dev = uhd::usrp::multi_usrp::make(addr);
|
||||||
} catch(...) {
|
} catch(uhd::key_error::exception &e) {
|
||||||
LOGC(DDEV, ALERT) << "UHD make failed, device " << args;
|
LOGC(DDEV, ALERT) << "UHD make failed, device " << args << ", exception:\n" << e.what();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue