summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-runtime/lib/prefs.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc
index 341028eba8..18acae0124 100644
--- a/gnuradio-runtime/lib/prefs.cc
+++ b/gnuradio-runtime/lib/prefs.cc
@@ -30,6 +30,7 @@
#include <algorithm>
#include <fstream>
+#include <iostream>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
@@ -113,7 +114,7 @@ namespace gr {
std::string value = o.value[0];
d_config_map[section][key] = value;
}
- } catch(const boost::program_options::invalid_config_file_syntax & e) {
+ } catch(std::exception e) {
std::cerr << "WARNING: Config file '" << fname << "' failed to parse:" << std::endl;
std::cerr << e.what() << std::endl;
std::cerr << "Skipping it" << std::endl;