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:
Luca BRUNO 2022-01-03 17:38:51 +00:00
parent a27ccc96fd
commit eae35b7f6e
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
1 changed files with 1 additions and 1 deletions

View File

@ -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,