aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-01 17:16:05 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:36 -0800
commit88aac58651ed8f632137e39964b5dd580be6016a (patch)
tree952d9ad518e169f2d1341b63099bd4b89232fbf1
parent7bac67af0898486745ea2f0590e80f5e614196af (diff)
downloaduhd-88aac58651ed8f632137e39964b5dd580be6016a.tar.gz
uhd-88aac58651ed8f632137e39964b5dd580be6016a.tar.bz2
uhd-88aac58651ed8f632137e39964b5dd580be6016a.zip
rfnoc: rfnoc_graph: Improve error reporting for init failures
-rw-r--r--host/lib/rfnoc/rfnoc_graph.cpp4
1 files changed, 4 insertions, 0 deletions
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.");
}