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 2017-03-24 09:16:06 -04:00 committed by Atomic Bot
parent ffc178311e
commit 4d873389f0

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;
}