summaryrefslogtreecommitdiff
path: root/src/lib/writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-09-29 23:28:57 +0200
committerCarl Hetherington <cth@carlh.net>2019-09-29 23:28:57 +0200
commitab0e8cdcafdcb83096012380f674b8280474e851 (patch)
treeb89df2d9abcbf15e1a113db8ea3024aadc41edaa /src/lib/writer.cc
parent9a6d5d07edef459e6e7ac1708f32c34981d6cd05 (diff)
Improve OpenFileError so that it doesn't say "opening for read"v2.15.20
in one case where it should say "opening for read/write". Also add some unit tests for ReelWriter.
Diffstat (limited to 'src/lib/writer.cc')
-rw-r--r--src/lib/writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 3fc01571e..5b24d7491 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -586,7 +586,7 @@ Writer::write_cover_sheet ()
boost::filesystem::path const cover = _film->file ("COVER_SHEET.txt");
FILE* f = fopen_boost (cover, "w");
if (!f) {
- throw OpenFileError (cover, errno, false);
+ throw OpenFileError (cover, errno, OpenFileError::WRITE);
}
string text = Config::instance()->cover_sheet ();