aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-02-18 17:40:47 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-02-18 17:40:47 -0800
commit1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba (patch)
treea6c4fb7f587a6949485717d13cea3e4fa53e3496 /host/lib/transport
parent2d68f228888807d0fd76c7b759ec39fd86523f67 (diff)
parented4223d74cab604213b925da2eccb6055aa7aea2 (diff)
downloaduhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.tar.gz
uhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.tar.bz2
uhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.zip
Merge branch 'maint'
Conflicts: host/lib/usrp/cores/gpio_core_200.cpp host/lib/usrp/dboard/db_ubx.cpp
Diffstat (limited to 'host/lib/transport')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp4
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index b67b36d0a..53e345009 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -149,8 +149,8 @@ public:
if (wait_for_completion(timeout))
{
if (result.status != LIBUSB_TRANSFER_COMPLETED)
- throw uhd::runtime_error(str(boost::format("usb %s transfer status: %d")
- % _name % libusb_error_name(result.status)));
+ throw uhd::io_error(str(boost::format("usb %s transfer status: %d")
+ % _name % libusb_error_name(result.status)));
result.completed = 0;
return make(reinterpret_cast<buffer_type *>(this), _lut->buffer, (_is_recv)? result.actual_length : _frame_size);
}
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index 4a7ad8d26..ea6143f89 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -530,10 +530,10 @@ private:
);
}
- //handle the case when the get packet throws
- catch(const std::exception &e){
+ //handle the case where a bad header exists
+ catch(const uhd::value_error &e){
UHD_MSG(error) << boost::format(
- "The receive packet handler caught an exception.\n%s"
+ "The receive packet handler caught a value exception.\n%s"
) % e.what() << std::endl;
std::swap(curr_info, next_info); //save progress from curr -> next
curr_info.metadata.error_code = rx_metadata_t::ERROR_CODE_BAD_PACKET;