ostree/0001-lib-commit-Add-more-error-prefixing.patch

29 lines
957 B
Diff

From bb8fd5a2c4b91d8fd41e831887f053bb63b13ac5 Mon Sep 17 00:00:00 2001
From: Jonathan Lebon <jonathan@jlebon.com>
Date: Fri, 17 Apr 2020 14:18:28 -0400
Subject: [PATCH 1/3] lib/commit: Add more error prefixing
We think we're hitting an error in that function in the Fedora infra.
Add some more error prefixing to help debugging.
---
src/libostree/ostree-repo-commit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
index 3f2f2beb..6712b53e 100644
--- a/src/libostree/ostree-repo-commit.c
+++ b/src/libostree/ostree-repo-commit.c
@@ -1943,6 +1943,9 @@ cleanup_txn_dir (OstreeRepo *self,
GCancellable *cancellable,
GError **error)
{
+ const char *errprefix = glnx_strjoina ("Cleaning up txn dir ", path);
+ GLNX_AUTO_PREFIX_ERROR (errprefix, error);
+
g_auto(GLnxLockFile) lockfile = { 0, };
gboolean did_lock;
--
2.25.1