summaryrefslogtreecommitdiff
path: root/src/wx/job_wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/job_wrapper.cc')
-rw-r--r--src/wx/job_wrapper.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wx/job_wrapper.cc b/src/wx/job_wrapper.cc
index ad83aa271..cc7507547 100644
--- a/src/wx/job_wrapper.cc
+++ b/src/wx/job_wrapper.cc
@@ -35,12 +35,8 @@ JobWrapper::make_dcp (wxWindow* parent, Film* film, bool transcode)
try {
film->make_dcp (transcode);
} catch (BadSettingError& e) {
- stringstream s;
- s << "Bad setting for " << e.setting() << "(" << e.what() << ")";
- error_dialog (parent, s.str ());
+ error_dialog (parent, String::compose ("Bad setting for %1 (%2)", e.setting(), e.what ()));
} catch (std::exception& e) {
- stringstream s;
- s << "Could not make DCP: " << e.what () << ".";
- error_dialog (parent, s.str ());
+ error_dialog (parent, String::compose ("Could not make DCP: %1", e.what ()));
}
}