From 92984df6ab50ba4ec90d105e44b58efa863c4b59 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 21 Aug 2016 22:59:19 +0100 Subject: Even better open-file error reports. --- src/lib/exceptions.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib/exceptions.h') diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 1a32b5402..75f4a8cd1 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -95,8 +95,11 @@ public: class OpenFileError : public FileError { public: - /** @param f File that we were trying to open */ - OpenFileError (boost::filesystem::path f, int error); + /** @param f File that we were trying to open. + * @param error Code of error that occurred. + * @param reading true if we were opening to read, false if opening to write. + */ + OpenFileError (boost::filesystem::path f, int error, bool reading); }; /** @class ReadFileError. -- cgit v1.2.3