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/lib/exceptions.cc | |
| parent | 6c16feca6c9b51b4833051eff4b5f6a9e9454a73 (diff) | |
Better errors on open fails; remove unused exception.
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index f07354ca1..f3e3a999c 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -27,15 +27,8 @@ using std::string; using std::runtime_error; /** @param f File that we were trying to open */ -OpenFileError::OpenFileError (boost::filesystem::path f) - : FileError (String::compose (_("could not open file %1"), f.string()), f) -{ - -} - -/** @param f File that we were trying to create */ -CreateFileError::CreateFileError (boost::filesystem::path f) - : FileError (String::compose (_("could not create file %1"), f.string()), f) +OpenFileError::OpenFileError (boost::filesystem::path f, int error) + : FileError (String::compose (_("could not open file %1 (%2)"), f.string(), error), f) { } |
