diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-01 14:44:07 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-01 14:44:07 -0700 |
commit | edbcd297b252c3ee9fc5544cbe12115f45c727a7 (patch) | |
tree | 1a03284df8b93a85d89cdb81a4631f66a2379cdb /gnuradio-runtime/lib/prefs.cc | |
parent | 85012bb73b8ad452262d5bd6e4af08fcb137144a (diff) | |
parent | 457186838d12607bcf9f5e61eaf937ff5fa090e0 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'gnuradio-runtime/lib/prefs.cc')
-rw-r--r-- | gnuradio-runtime/lib/prefs.cc | 3 |
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; |