diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-04-01 13:35:25 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-04-10 21:26:21 +0200 |
commit | 0fcd0282f86de158f25e30f7e14be820e6f3623a (patch) | |
tree | cea42092d608a3967680bda40a82d61580ec6fd4 | |
parent | 1f61316536057c4326964c599c90b6d1281c6e2b (diff) | |
download | uhd-0fcd0282f86de158f25e30f7e14be820e6f3623a.tar.gz uhd-0fcd0282f86de158f25e30f7e14be820e6f3623a.tar.bz2 uhd-0fcd0282f86de158f25e30f7e14be820e6f3623a.zip |
uhd: Added nicer error reporting to cal tools
-rw-r--r-- | host/utils/usrp_cal_utils.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp index 5aff5e22f..e8749fba7 100644 --- a/host/utils/usrp_cal_utils.hpp +++ b/host/utils/usrp_cal_utils.hpp @@ -257,8 +257,8 @@ static void capture_samples( //validate the received data if (md.error_code != uhd::rx_metadata_t::ERROR_CODE_NONE){ throw std::runtime_error(str(boost::format( - "Unexpected error code 0x%x" - ) % md.error_code)); + "Receiver error: %s" + ) % md.strerror())); } //we can live if all the data didnt come in if (num_rx_samps > buff.size()/2){ |