summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/dcpomatic.cc')
-rw-r--r--src/tools/dcpomatic.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index afde7e6c5..e6392f551 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -437,6 +437,7 @@ static const wxCmdLineEntryDesc command_line_description[] = {
class App : public wxApp
{
bool OnInit ()
+ try
{
if (!wxApp::OnInit()) {
return false;
@@ -499,6 +500,10 @@ class App : public wxApp
return true;
}
+ catch (exception& e)
+ {
+ error_dialog (0, wxString::Format ("DCP-o-matic could not start: %s", e.what ()));
+ }
void OnInitCmdLine (wxCmdLineParser& parser)
{