From 88aac58651ed8f632137e39964b5dd580be6016a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 1 Aug 2019 17:16:05 -0700 Subject: rfnoc: rfnoc_graph: Improve error reporting for init failures --- host/lib/rfnoc/rfnoc_graph.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/host/lib/rfnoc/rfnoc_graph.cpp b/host/lib/rfnoc/rfnoc_graph.cpp index f820a6960..c327fb124 100644 --- a/host/lib/rfnoc/rfnoc_graph.cpp +++ b/host/lib/rfnoc/rfnoc_graph.cpp @@ -60,7 +60,11 @@ public: _block_registry->init_props(); _init_sep_map(); _init_static_connections(); + } catch (const std::exception& ex) { + UHD_LOG_ERROR(LOG_ID, "Caught exception while initializing graph: " << ex.what()); + throw uhd::runtime_error("Failure to create rfnoc_graph."); } catch (...) { + UHD_LOG_ERROR(LOG_ID, "Caught unknown exception while initializing graph!"); throw uhd::runtime_error("Failure to create rfnoc_graph."); } -- cgit v1.2.3