lib/commit: Add more error prefixing
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 17 Apr 2020 18:18:28 +0000 (14:18 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Fri, 17 Apr 2020 18:27:16 +0000 (14:27 -0400)
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

index 3f2f2bebcd13188b5abe86762e572d5c134376cf..6712b53e753c3cb8e13c9ee68703eae94fa6383e 100644 (file)
@@ -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;