summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-08-25 13:16:46 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-08-25 20:01:37 +0000
commit683e060099025f4030ebeab445471a9dbc978e10 (patch)
tree9569778219525eceeaf3d9a29c91a3ead1e90dc1
parent05ac14326c824748d37aaabf045856c478b82b05 (diff)
downloadostree-683e060099025f4030ebeab445471a9dbc978e10.tar.gz
repo: Add prefixes to errors for querying size/deleting
I hit these while causing errors in prune. Let's add the specific object we were looking for. Closes: #471 Approved by: jlebon
-rw-r--r--src/libostree/ostree-repo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index a41f29c9..5e9818fd 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -3136,7 +3136,7 @@ ostree_repo_delete_object (OstreeRepo *self,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
- glnx_set_error_from_errno (error);
+ glnx_set_prefix_error_from_errno (error, "Deleting object %s.%s", sha256, ostree_object_type_to_string (objtype));
goto out;
}
@@ -3444,7 +3444,7 @@ ostree_repo_query_object_storage_size (OstreeRepo *self,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
- glnx_set_error_from_errno (error);
+ glnx_set_prefix_error_from_errno (error, "Querying object %s.%s", sha256, ostree_object_type_to_string (objtype));
goto out;
}