diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-18 17:02:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-18 17:02:33 +0100 |
| commit | 513947df0f421c086ac56dff48dfe540b0a380c2 (patch) | |
| tree | 5fd393d3833a512dffacbeb2bb11eafe4003440e /src/wx | |
| parent | 6c16feca6c9b51b4833051eff4b5f6a9e9454a73 (diff) | |
Better errors on open fails; remove unused exception.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/config_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index c18cf3c92..13d7e1762 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -829,7 +829,7 @@ private: if (d->ShowModal () == wxID_OK) { FILE* f = fopen_boost (wx_to_std (d->GetPath ()), "w"); if (!f) { - throw OpenFileError (wx_to_std (d->GetPath ())); + throw OpenFileError (wx_to_std (d->GetPath ()), errno); } string const s = j->certificate (true); @@ -977,7 +977,7 @@ private: if (d->ShowModal () == wxID_OK) { FILE* f = fopen_boost (wx_to_std (d->GetPath ()), "w"); if (!f) { - throw OpenFileError (wx_to_std (d->GetPath ())); + throw OpenFileError (wx_to_std (d->GetPath ()), errno); } string const s = _chain->key().get (); @@ -1060,7 +1060,7 @@ private: if (d->ShowModal () == wxID_OK) { FILE* f = fopen_boost (wx_to_std (d->GetPath ()), "w"); if (!f) { - throw OpenFileError (wx_to_std (d->GetPath ())); + throw OpenFileError (wx_to_std (d->GetPath ()), errno); } string const s = Config::instance()->decryption_chain()->leaf().certificate (true); @@ -1080,7 +1080,7 @@ private: if (d->ShowModal () == wxID_OK) { FILE* f = fopen_boost (wx_to_std (d->GetPath ()), "w"); if (!f) { - throw OpenFileError (wx_to_std (d->GetPath ())); + throw OpenFileError (wx_to_std (d->GetPath ()), errno); } string const s = Config::instance()->decryption_chain()->chain(); |
