diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-11 20:23:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-11 20:23:11 +0000 |
| commit | 4fc16ea5fbe1db26d5c50415374a71c0dbf68b0d (patch) | |
| tree | 4b42ade518e8fe2d003d2d85f0b124664d91609e /src/lib/exceptions.cc | |
| parent | 00596df5d47d306b3550ab33e0691bf3fb68567a (diff) | |
Give a better error when opening a DCP with File -> Open by mistake (#1723).v2.14.32
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index bf474e3ea..4b518e73a 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -40,6 +40,13 @@ OpenFileError::OpenFileError (boost::filesystem::path f, int error, Mode mode) } +FileNotFoundError::FileNotFoundError (boost::filesystem::path f) + : runtime_error(String::compose("File %1 not found", f.string())) + , _file (f) +{ + +} + ReadFileError::ReadFileError (boost::filesystem::path f, int e) : FileError (String::compose (_("could not read from file %1 (%2)"), f.string(), strerror (e)), f) { |
