From eae35b7f6e08d66747c7528dd117076bbe0d09e0 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Mon, 3 Jan 2022 17:38:51 +0000 Subject: 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. --- src/libostree/ostree-repo-static-delta-processing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.1