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:
1 parent
ffc178311e
commit
4d873389f0
1 file changed
+2
@@ -344,6 +344,8 @@ commit_loose_object_trusted (OstreeRepo *self,
|
|||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
out:
|
out:
|
||||||
|
if (G_UNLIKELY (error && *error))
|
||||||
|
g_prefix_error (error, "Writing object %s.%s: ", checksum, ostree_object_type_to_string (objtype));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user