aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/images.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-24 16:35:29 -0800
committerJosh Blum <josh@joshknows.com>2011-02-24 16:35:29 -0800
commit4357f5d3c043245b5c086b20742795624af9f432 (patch)
tree7a3cfc9f5b3ffc285ecd611655d741355dcb39b8 /host/lib/utils/images.cpp
parent16f08844d7b6ccbdcfdf17963b88cadb7525ddc6 (diff)
downloaduhd-4357f5d3c043245b5c086b20742795624af9f432.tar.gz
uhd-4357f5d3c043245b5c086b20742795624af9f432.tar.bz2
uhd-4357f5d3c043245b5c086b20742795624af9f432.zip
uhd: replaced instanced of std::exception with the uhd exceptions
Diffstat (limited to 'host/lib/utils/images.cpp')
-rw-r--r--host/lib/utils/images.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/images.cpp b/host/lib/utils/images.cpp
index 395e542c1..3756f035a 100644
--- a/host/lib/utils/images.cpp
+++ b/host/lib/utils/images.cpp
@@ -16,9 +16,9 @@
//
#include <uhd/utils/images.hpp>
+#include <uhd/exception.hpp>
#include <boost/foreach.hpp>
#include <boost/filesystem.hpp>
-#include <stdexcept>
#include <vector>
namespace fs = boost::filesystem;
@@ -36,5 +36,5 @@ std::string uhd::find_image_path(const std::string &image_name){
fs::path image_path = path / image_name;
if (fs::exists(image_path)) return image_path.file_string();
}
- throw std::runtime_error("Could not find path for image: " + image_name);
+ throw uhd::io_error("Could not find path for image: " + image_name);
}