#include <common/exception/win32_exception.h>\r
#include <common/exception/exceptions.h>\r
#include <common/log/log.h>\r
+#include <common/gl/gl_check.h>\r
#include <common/os/windows/current_version.h>\r
#include <common/os/windows/system_info.h>\r
#include <common/utility/assert.h>\r
#include <tbb/task_scheduler_init.h>\r
\r
#include <boost/foreach.hpp>\r
+#include <boost/property_tree/detail/file_parser_error.hpp>\r
\r
// NOTE: This is needed in order to make CComObject work since this is not a real ATL project.\r
CComModule _AtlModule;\r
amcp.Parse(wcmd.c_str(), wcmd.length(), dummy);\r
}\r
}\r
+ catch(boost::property_tree::file_parser_error&)\r
+ {\r
+ CASPAR_LOG_CURRENT_EXCEPTION();\r
+ CASPAR_LOG(fatal) << L"Unhandled configuration error in main thread. Please check the configuration file (casparcg.config) for errors.";\r
+ }\r
+ catch(caspar::gl::ogl_exception&)\r
+ {\r
+ CASPAR_LOG_CURRENT_EXCEPTION();\r
+\r
+ CASPAR_LOG(fatal) << L"Unhandled OpenGL Error in main thread. Please try to update graphics drivers in order to receive full OpenGL 3.1+ Support.";\r
+ }\r
catch(...)\r
{\r
- CASPAR_LOG(fatal) << "UNHANDLED EXCEPTION in main thread.";\r
CASPAR_LOG_CURRENT_EXCEPTION();\r
+ CASPAR_LOG(fatal) << L"Unhandled exception in main thread. Please report this error on the CasparCG forums (www.casparcg.com/forum).";\r
} \r
\r
CASPAR_LOG(info) << "Successfully shutdown CasparCG Server.";\r