diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-26 23:48:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-26 23:48:24 +0100 |
| commit | bdf139bd50ace75551d92fcf41b51c57083670b3 (patch) | |
| tree | e14e8f294b3d99b71f4b4deab511d87585e912fc /src/lib | |
| parent | a5d9f9a473d9ce8c273d9763a478e88edf2162fa (diff) | |
Add some console output on a failure to load the configuration.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index b30da5746..0b1b99e22 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -42,6 +42,8 @@ using std::string; using std::ofstream; using std::list; using std::max; +using std::exception; +using std::cerr; using boost::shared_ptr; using boost::lexical_cast; using boost::optional; @@ -257,10 +259,13 @@ Config::instance () _instance = new Config; try { _instance->read (); - } catch (...) { + } catch (exception& e) { /* configuration load failed; never mind, just stick with the default. */ + cerr << "dcpomatic: failed to load configuration (" << e.what() << "\n"; + } catch (...) { + cerr << "dcpomatic: failed to load configuration\n"; } } |
