Merge pull request #2505 from lucab/ups/bsdiff-error-throw

lib/static-delta: throw a proper error on bspatch failure
This commit is contained in:
Colin Walters 2022-01-03 16:57:52 -05:00 committed by GitHub
commit 4d47733f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,