sysroot: Add a bit more error prefixing
authorColin Walters <walters@verbum.org>
Mon, 24 Jul 2023 12:48:51 +0000 (08:48 -0400)
committerColin Walters <walters@verbum.org>
Mon, 24 Jul 2023 12:48:51 +0000 (08:48 -0400)
While an error message I saw was pretty clear, this would
be even more explicit.

src/libostree/ostree-sysroot.c

index 68dddf4ede2bbc367fa2c28bdbc3540bfd8a1a6e..8bcc2f733ec43da0fe7b14b1a2dd6744abcc14df 100644 (file)
@@ -964,6 +964,8 @@ ostree_sysroot_load (OstreeSysroot *self, GCancellable *cancellable, GError **er
 static gboolean
 ensure_repo (OstreeSysroot *self, GError **error)
 {
+  GLNX_AUTO_PREFIX_ERROR ("Opening sysroot repo", error);
+
   if (self->repo != NULL)
     return TRUE;
   if (!ensure_sysroot_fd (self, error))
@@ -1002,6 +1004,8 @@ ensure_repo (OstreeSysroot *self, GError **error)
 gboolean
 ostree_sysroot_initialize (OstreeSysroot *self, GError **error)
 {
+  GLNX_AUTO_PREFIX_ERROR ("Initializing sysroot", error);
+
   if (!ensure_sysroot_fd (self, error))
     return FALSE;