diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-06-30 10:45:59 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:12 -0800 |
commit | 3dd3cfa09f6483351e486886ebab5684d5dbbdd8 (patch) | |
tree | 8e57a133e30b8ce12cfbc3ca2ea19300df7de105 | |
parent | 7670d8abeff1666558a5f621fcde4230b8bec3e9 (diff) | |
download | uhd-3dd3cfa09f6483351e486886ebab5684d5dbbdd8.tar.gz uhd-3dd3cfa09f6483351e486886ebab5684d5dbbdd8.tar.bz2 uhd-3dd3cfa09f6483351e486886ebab5684d5dbbdd8.zip |
rfnoc: block_id: Add more info when ctor fails
-rw-r--r-- | host/lib/rfnoc/block_id.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/rfnoc/block_id.cpp b/host/lib/rfnoc/block_id.cpp index c33e1464c..1cef4c9c8 100644 --- a/host/lib/rfnoc/block_id.cpp +++ b/host/lib/rfnoc/block_id.cpp @@ -22,7 +22,8 @@ block_id_t::block_id_t(const std::string& block_str) : _device_no(0), _block_name(""), _block_ctr(0) { if (not set(block_str)) { - throw uhd::value_error("block_id_t: Invalid block ID string."); + throw uhd::value_error( + "block_id_t: Invalid block ID string: `" + block_str + "'"); } } |