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;
_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";
}
}