diff options
author | michael-west <michael.west@ettus.com> | 2014-05-02 17:54:23 -0700 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2014-05-14 12:24:31 -0700 |
commit | 06fb769714324c9c45d0bb8d3c4f9bd373a5d674 (patch) | |
tree | ad9d1a2392f4fe5a07b2c87d4a067655de1cb131 /host/lib | |
parent | 00711ba213dde8aa0a099d2b18d3da0a33e6af79 (diff) | |
download | uhd-06fb769714324c9c45d0bb8d3c4f9bd373a5d674.tar.gz uhd-06fb769714324c9c45d0bb8d3c4f9bd373a5d674.tar.bz2 uhd-06fb769714324c9c45d0bb8d3c4f9bd373a5d674.zip |
BUG #465: UHD: "Error: Connection refused" for USRP1 and B100
- Added catch for unhandled error
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/transport/nirio/rpc/rpc_client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/transport/nirio/rpc/rpc_client.cpp b/host/lib/transport/nirio/rpc/rpc_client.cpp index f8dc26b50..0c4b8fe3c 100644 --- a/host/lib/transport/nirio/rpc/rpc_client.cpp +++ b/host/lib/transport/nirio/rpc/rpc_client.cpp @@ -104,6 +104,11 @@ rpc_client::rpc_client ( } catch (boost::exception&) { UHD_LOG << "rpc_client connection request cancelled/aborted." << std::endl; _exec_err.assign(boost::asio::error::connection_aborted, boost::asio::error::get_system_category()); +#if BOOST_VERSION < 104700 + } catch (std::exception& e) { + UHD_LOG << "rpc_client connection error: " << e.what() << std::endl; + _exec_err.assign(boost::asio::error::connection_aborted, boost::asio::error::get_system_category()); +#endif } } |