diff options
author | Josh Blum <josh@joshknows.com> | 2012-07-19 17:11:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-07-19 17:11:41 -0700 |
commit | b4f3b83acbe8d3b69767d7c23b4bc798095c8214 (patch) | |
tree | 400d97a35869df2692a06b4f56ed02daf497dc55 /host/lib/usrp | |
parent | 7fe0fdd19aa9a748df8c54f3de58fd08ec156484 (diff) | |
download | uhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.tar.gz uhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.tar.bz2 uhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.zip |
e100: added extra error message for FPGA not found
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/e100/e100_impl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/host/lib/usrp/e100/e100_impl.cpp b/host/lib/usrp/e100/e100_impl.cpp index ef0351bd2..eb8804776 100644 --- a/host/lib/usrp/e100/e100_impl.cpp +++ b/host/lib/usrp/e100/e100_impl.cpp @@ -121,7 +121,14 @@ e100_impl::e100_impl(const uhd::device_addr_t &device_addr){ //extract the fpga path and compute hash const std::string default_fpga_file_name = model_to_fpga_file_name[model]; - const std::string e100_fpga_image = find_image_path(device_addr.get("fpga", default_fpga_file_name)); + std::string e100_fpga_image; + try{ + e100_fpga_image = find_image_path(device_addr.get("fpga", default_fpga_file_name)); + } + catch(...){ + UHD_MSG(error) << boost::format("Could not find FPGA image. %s\n") % print_images_error(); + throw; + } e100_load_fpga(e100_fpga_image); //////////////////////////////////////////////////////////////////// |