summaryrefslogtreecommitdiff
path: root/src/lib/encoded_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/encoded_data.cc')
-rw-r--r--src/lib/encoded_data.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/encoded_data.cc b/src/lib/encoded_data.cc
index 1b1926017..0e8ffd6b5 100644
--- a/src/lib/encoded_data.cc
+++ b/src/lib/encoded_data.cc
@@ -95,6 +95,9 @@ EncodedData::write_info (shared_ptr<const Film> film, int frame, Eyes eyes, dcp:
{
boost::filesystem::path const info = film->info_path (frame, eyes);
FILE* h = fopen_boost (info, "w");
+ if (!h) {
+ throw OpenFileError (info);
+ }
fin.write (h);
fclose (h);
}