summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-20 16:21:42 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-20 16:21:42 +0100
commitf071268af155c9443fadba8d4368f960b82704ab (patch)
treead36f17e3c77b33a845d35d0f7f26b84ed176d25 /src/tools
parent5d9f6da737b07cc7caac47cab77e93eeb2843cf0 (diff)
Some more use of boost::filesystem::path; catch exceptions in OnInit().
Diffstat (limited to 'src/tools')
-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)
{