summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2022-01-03 17:38:51 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2022-01-03 17:38:51 +0000
commiteae35b7f6e08d66747c7528dd117076bbe0d09e0 (patch)
tree0a92a3c9612c222e4b3a895159e92ed79dec0d00
parenta27ccc96fd843e6326bf32f24f44d450da8ce6df (diff)
downloadostree-eae35b7f6e08d66747c7528dd117076bbe0d09e0.tar.gz
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.
-rw-r--r--src/libostree/ostree-repo-static-delta-processing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-static-delta-processing.c b/src/libostree/ostree-repo-static-delta-processing.c
index 020b0028..6e093121 100644
--- a/src/libostree/ostree-repo-static-delta-processing.c
+++ b/src/libostree/ostree-repo-static-delta-processing.c
@@ -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,