diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-01 17:16:05 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:36 -0800 |
commit | 88aac58651ed8f632137e39964b5dd580be6016a (patch) | |
tree | 952d9ad518e169f2d1341b63099bd4b89232fbf1 | |
parent | 7bac67af0898486745ea2f0590e80f5e614196af (diff) | |
download | uhd-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.cpp | 4 |
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."); } |