aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/super_recv_packet_handler.hpp
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/super_recv_packet_handler.hpp
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/super_recv_packet_handler.hpp')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp6
1 files changed, 3 insertions, 3 deletions
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;