summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-07-19 17:11:41 -0700
committerJosh Blum <josh@joshknows.com>2012-07-19 17:11:41 -0700
commitb4f3b83acbe8d3b69767d7c23b4bc798095c8214 (patch)
tree400d97a35869df2692a06b4f56ed02daf497dc55
parent7fe0fdd19aa9a748df8c54f3de58fd08ec156484 (diff)
downloaduhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.tar.gz
uhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.tar.bz2
uhd-b4f3b83acbe8d3b69767d7c23b4bc798095c8214.zip
e100: added extra error message for FPGA not found
-rw-r--r--host/lib/usrp/e100/e100_impl.cpp9
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);
////////////////////////////////////////////////////////////////////