Better errors on open fails; remove unused exception.
[dcpomatic.git] / src / lib / magick_image_proxy.cc
index d207e0561de2eb33967434a6edc19c7436c75412..25935a8395bdc5e45d0f59fddf3c1ca352084b79 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);
+               throw OpenFileError (path, errno);
        }
 
        uint8_t* data = new uint8_t[size];