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:
parent
ffc178311e
commit
4d873389f0
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue