aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_multi_samples.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-04-01 14:10:30 +0200
committerMartin Braun <martin.braun@ettus.com>2014-04-10 21:26:39 +0200
commit853901782f07b62bf774551c344a65606e545a4f (patch)
tree8a432c415ba508efe8b76b6298be72b8b8a4872f /host/examples/rx_multi_samples.cpp
parent0fcd0282f86de158f25e30f7e14be820e6f3623a (diff)
downloaduhd-853901782f07b62bf774551c344a65606e545a4f.tar.gz
uhd-853901782f07b62bf774551c344a65606e545a4f.tar.bz2
uhd-853901782f07b62bf774551c344a65606e545a4f.zip
uhd: Added nicer error reporting to rx examples
Diffstat (limited to 'host/examples/rx_multi_samples.cpp')
-rw-r--r--host/examples/rx_multi_samples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/rx_multi_samples.cpp b/host/examples/rx_multi_samples.cpp
index 9e5970978..a50b5f0e0 100644
--- a/host/examples/rx_multi_samples.cpp
+++ b/host/examples/rx_multi_samples.cpp
@@ -172,8 +172,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT) break;
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()));
}
if(verbose) std::cout << boost::format(