lib/static-delta: throw a proper error on bspatch failure
This makes sure that a populated GError is returned when bsdiff patching fails. The human-friendly label also helps in debugging.
This commit is contained in:
parent
a27ccc96fd
commit
eae35b7f6e
|
|
@ -456,7 +456,7 @@ dispatch_bspatch (OstreeRepo *repo,
|
|||
buf,
|
||||
state->content_size,
|
||||
&stream) < 0)
|
||||
return FALSE;
|
||||
return glnx_throw (error, "bsdiff patch failed");
|
||||
|
||||
if (!_ostree_repo_bare_content_write (repo, &state->content_out,
|
||||
buf, state->content_size,
|
||||
|
|
|
|||
Loading…
Reference in New Issue