diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-12 22:30:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-12 22:30:43 +0000 |
| commit | f1dbcec7552052856369631e77c5eb160badd619 (patch) | |
| tree | 6fa9d8f36fe525fc32e8e88e8ae703d756fc1b43 /src/wx/config_dialog.cc | |
| parent | 49281333410c321e616c5d3cfd4308e21d0c9cb4 (diff) | |
Separate readable error from technical detail in some places.
Diffstat (limited to 'src/wx/config_dialog.cc')
| -rw-r--r-- | src/wx/config_dialog.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index fb80963f4..4b8e44f92 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -455,7 +455,7 @@ CertificateChainEditor::add_certificate () try { extra = c.read_string (dcp::file_to_string (wx_to_std (d->GetPath ()))); } catch (boost::filesystem::filesystem_error& e) { - error_dialog (this, wxString::Format (_("Could not import certificate (%s)"), d->GetPath().data())); + error_dialog (this, _("Could not import certificate (%s)"), d->GetPath()); d->Destroy (); return; } @@ -481,7 +481,7 @@ CertificateChainEditor::add_certificate () update_certificate_list (); } } catch (dcp::MiscError& e) { - error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), e.what ())); + error_dialog (this, _("Could not read certificate file."), std_to_wx(e.what())); } } @@ -675,7 +675,7 @@ CertificateChainEditor::import_private_key () _set (chain); update_private_key (); } catch (dcp::MiscError& e) { - error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), e.what ())); + error_dialog (this, _("Could not read certificate file."), std_to_wx(e.what())); } } |
