[ostree] libostree: Add a better error if we fail to read keyring directory



commit 4995352fe0bda4f0328290af289d780f05e43138
Author: Colin Walters <walters verbum org>
Date:   Fri Mar 14 14:42:45 2014 -0400

    libostree: Add a better error if we fail to read keyring directory
    
    I had accidentally put it in the -devel package and not noticed.

 src/libostree/ostree-gpg-verifier.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-gpg-verifier.c b/src/libostree/ostree-gpg-verifier.c
index d89c39c..abe2e79 100644
--- a/src/libostree/ostree-gpg-verifier.c
+++ b/src/libostree/ostree-gpg-verifier.c
@@ -85,7 +85,11 @@ ostree_gpg_verifier_initable_init (GInitable        *initable,
   default_keyring_dir = g_file_new_for_path (default_keyring_path);
   if (!_ostree_gpg_verifier_add_keyring_dir (self, default_keyring_dir,
                                              cancellable, error))
-    goto out;
+    {
+      g_prefix_error (error, "Reading keyring directory '%s'",
+                      gs_file_get_path_cached (default_keyring_dir));
+      goto out;
+    }
 
   ret = TRUE;
  out:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]