core: Add error prefixing when we fail to fetch an rpm-md repo

Someone in Freenode #silverblue hit
https://discussion.fedoraproject.org/t/rpm-ostree-giving-error/772
again, the problem would have been slightly more obvious
with this I hope.

(`Read only repository` could also be an OSTree one e.g.)
This commit is contained in:
Colin Walters 2020-04-08 22:52:22 +00:00 committed by OpenShift Merge Robot
parent 8a172a2e05
commit b54b50c6a4

View File

@ -1115,7 +1115,7 @@ rpmostree_context_download_metadata (RpmOstreeContext *self,
rpmostree_output_progress_percent_begin (&progress, "Updating metadata for '%s'", rpmostree_output_progress_percent_begin (&progress, "Updating metadata for '%s'",
dnf_repo_get_id (repo)); dnf_repo_get_id (repo));
if (!dnf_repo_update (repo, DNF_REPO_UPDATE_FLAG_FORCE, hifstate, error)) if (!dnf_repo_update (repo, DNF_REPO_UPDATE_FLAG_FORCE, hifstate, error))
return FALSE; return glnx_prefix_error (error, "Updating rpm-md repo '%s'", dnf_repo_get_id (repo));
did_update = TRUE; did_update = TRUE;