From bd132be3d395a60b0ce68149cf8805a1258d86cf Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 15 Dec 2011 10:12:33 -0800 Subject: usrp: better error message when dboard fails in init --- host/lib/usrp/dboard_manager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/dboard_manager.cpp') 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); } } -- cgit v1.2.3