mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
Merge pull request #2746 from lucab/ups/lib-repo-refs-error
lib/repo-refs: properly return an error value
This commit is contained in:
commit
aded044149
@ -36,7 +36,8 @@ add_ref_to_set (const char *remote,
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (remote == NULL || collection_id == NULL, FALSE);
|
if (remote != NULL && collection_id != NULL)
|
||||||
|
return glnx_throw (error, "Cannot process both a remote and a collection ID");
|
||||||
|
|
||||||
gsize len;
|
gsize len;
|
||||||
char *contents = glnx_file_get_contents_utf8_at (base_fd, path, &len, cancellable, error);
|
char *contents = glnx_file_get_contents_utf8_at (base_fd, path, &len, cancellable, error);
|
||||||
|
Loading…
Reference in New Issue
Block a user