summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_batch.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-01-12 22:30:43 +0000
committerCarl Hetherington <cth@carlh.net>2018-01-12 22:30:43 +0000
commitf1dbcec7552052856369631e77c5eb160badd619 (patch)
tree6fa9d8f36fe525fc32e8e88e8ae703d756fc1b43 /src/tools/dcpomatic_batch.cc
parent49281333410c321e616c5d3cfd4308e21d0c9cb4 (diff)
Separate readable error from technical detail in some places.
Diffstat (limited to 'src/tools/dcpomatic_batch.cc')
-rw-r--r--src/tools/dcpomatic_batch.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tools/dcpomatic_batch.cc b/src/tools/dcpomatic_batch.cc
index 7a4f50622..827229e8f 100644
--- a/src/tools/dcpomatic_batch.cc
+++ b/src/tools/dcpomatic_batch.cc
@@ -137,7 +137,7 @@ public:
} catch (std::exception& e) {
wxString p = std_to_wx (path.string ());
wxCharBuffer b = p.ToUTF8 ();
- error_dialog (this, wxString::Format (_("Could not open film at %s (%s)"), p.data(), std_to_wx (e.what()).data()));
+ error_dialog (this, wxString::Format (_("Could not open film at %s"), p.data()), std_to_wx(e.what()));
}
}
@@ -337,12 +337,9 @@ class App : public wxApp
film->make_dcp ();
} catch (exception& e) {
error_dialog (
- 0, std_to_wx (
- String::compose (
- wx_to_std (_("Could not load film %1 (%2)")), i.string(),
- e.what()
- )
- )
+ 0,
+ std_to_wx (String::compose (wx_to_std (_("Could not load film %1")), i.string())),
+ std_to_wx(e.what())
);
}
}