[ostree] core: Prefix some error messages
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [ostree] core: Prefix some error messages
- Date: Sat, 13 Oct 2012 21:48:33 +0000 (UTC)
commit a284075731c3c3d5ac7099cd6979a74be67baf13
Author: Colin Walters <walters verbum org>
Date:   Sat Oct 13 17:46:24 2012 -0400
    core: Prefix some error messages
    
    To help debug why I still have this race condition...
 src/libostree/ostree-repo.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index b63df8d..6d48025 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -3412,7 +3412,10 @@ checkout_file_thread (GSimpleAsyncResult     *result,
                                      OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES,
                                      checkout_data->source_info, xattrs, 
                                      input, cancellable, error))
-        goto out;
+        {
+          g_prefix_error (error, "Unpacking loose object %s: ", checksum);
+          goto out;
+        }
 
       /* Store the 2-byte objdir prefix (e.g. e3) in a set.  The basic
        * idea here is that if we had to unpack an object, it's very
@@ -3447,7 +3450,11 @@ checkout_file_thread (GSimpleAsyncResult     *result,
                                    checkout_data->overwrite_mode, loose_path,
                                    checkout_data->destination,
                                    &hardlink_supported, cancellable, error))
-        goto out;
+        {
+          g_prefix_error (error, "Hardlinking loose object %s to %s: ", checksum,
+                          ot_gfile_get_path_cached (checkout_data->destination));
+          goto out;
+        }
     }
 
   /* Fall back to copy if there's no loose object, or we couldn't hardlink */
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]