core: Improve error message if we hit an unreadable file
This commit is contained in:
parent
26c484faed
commit
0660d9e5cf
|
|
@ -3565,7 +3565,10 @@ ostree_repo_load_file (OstreeRepo *self,
|
||||||
{
|
{
|
||||||
ret_input = (GInputStream*) g_file_read (loose_path, cancellable, error);
|
ret_input = (GInputStream*) g_file_read (loose_path, cancellable, error);
|
||||||
if (!ret_input)
|
if (!ret_input)
|
||||||
goto out;
|
{
|
||||||
|
g_prefix_error (error, "Error opening loose file object %s: ", ot_gfile_get_path_cached (loose_path));
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue