Even better open-file error reports.
[dcpomatic.git] / src / lib / magick_image_proxy.cc
index 25935a8395bdc5e45d0f59fddf3c1ca352084b79..2d1867fcc14a972c2296465178c07f50e7a4321f 100644 (file)
@@ -43,7 +43,7 @@ MagickImageProxy::MagickImageProxy (boost::filesystem::path path)
        boost::uintmax_t const size = boost::filesystem::file_size (path);
        FILE* f = fopen_boost (path, "rb");
        if (!f) {
-               throw OpenFileError (path, errno);
+               throw OpenFileError (path, errno, true);
        }
 
        uint8_t* data = new uint8_t[size];