commit: Prefix error with target object name on failure to write

Helpful to debug things later.

Closes: #759
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-03-24 22:16:43 +00:00
1 parent ffc178311e
commit 4d873389f0
1 file changed
+2
+2
View File
@@ -344,6 +344,8 @@ commit_loose_object_trusted (OstreeRepo *self,
ret = TRUE;
out:
if (G_UNLIKELY (error && *error))
g_prefix_error (error, "Writing object %s.%s: ", checksum, ostree_object_type_to_string (objtype));
return ret;
}