aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_manager.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-12-15 10:12:33 -0800
committerJosh Blum <josh@joshknows.com>2011-12-15 10:12:33 -0800
commitbd132be3d395a60b0ce68149cf8805a1258d86cf (patch)
tree34eeabc37e109b2132c45958c4b16624780a0c37 /host/lib/usrp/dboard_manager.cpp
parentf51b5f268b7c127266fe19a0dcb3e244034bcd10 (diff)
downloaduhd-bd132be3d395a60b0ce68149cf8805a1258d86cf.tar.gz
uhd-bd132be3d395a60b0ce68149cf8805a1258d86cf.tar.bz2
uhd-bd132be3d395a60b0ce68149cf8805a1258d86cf.zip
usrp: better error message when dboard fails in init
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r--host/lib/usrp/dboard_manager.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp
index 816fba0c4..987f4d03c 100644
--- a/host/lib/usrp/dboard_manager.cpp
+++ b/host/lib/usrp/dboard_manager.cpp
@@ -202,7 +202,14 @@ dboard_manager_impl::dboard_manager_impl(
this->init(rx_dboard_id, tx_dboard_id, subtree);
}
catch(const std::exception &e){
- UHD_MSG(error) << "The daughterboard manager encountered a recoverable error in init" << std::endl << e.what();
+ UHD_MSG(error) << boost::format(
+ "The daughterboard manager encountered a recoverable error in init.\n"
+ "Loading the \"unknown\" dabugterboard implementations to continue.\n"
+ "The daughterboard cannot operate until this error is resolved.\n"
+ ) << e.what() << std::endl;
+ //clean up the stuff added by the call above
+ subtree->remove("rx_frontends");
+ subtree->remove("tx_frontends");
this->init(dboard_id_t::none(), dboard_id_t::none(), subtree);
}
}