Add channel assignment support for SMPTE DCPs.
[libdcp.git] / src / util.cc
index 0c3cea08251e09030b40ffef1ce0910c8a3cf2f3..15b833a1b01f7fff5dc6cbda54342845570832d0 100644 (file)
@@ -353,7 +353,7 @@ dcp::file_to_string (boost::filesystem::path p, uintmax_t max_length)
 {
        uintmax_t len = boost::filesystem::file_size (p);
        if (len > max_length) {
-               throw MiscError ("Unexpectedly long file");
+               throw MiscError (String::compose ("Unexpectedly long file (%1)", p.string()));
        }
 
        FILE* f = fopen_boost (p, "r");