core: Improve error message if we hit an unreadable file

This commit is contained in:
Colin Walters committed 2012-05-04 16:14:47 -04:00
1 parent 26c484faed
commit 0660d9e5cf
1 file changed
+4 -1
+4 -1
View File
@@ -3565,7 +3565,10 @@ ostree_repo_load_file (OstreeRepo *self,
{
ret_input = (GInputStream*) g_file_read (loose_path, cancellable, error);
if (!ret_input)
goto out;
{
g_prefix_error (error, "Error opening loose file object %s: ", ot_gfile_get_path_cached (loose_path));
goto out;
}
}
}
}