Better errors on open fails; remove unused exception.
[dcpomatic.git] / src / lib / file_group.cc
index 548e13fef5cd538d357d541077b3d58fa256ea93..90aa10e28beb9d86aef50479555f378bf524e39d 100644 (file)
@@ -92,7 +92,7 @@ FileGroup::ensure_open_path (size_t p) const
        _current_path = p;
        _current_file = fopen_boost (_paths[_current_path], "rb");
        if (_current_file == 0) {
-               throw OpenFileError (_paths[_current_path]);
+               throw OpenFileError (_paths[_current_path], errno);
        }
 }