[ostree/wip/error-handling: 1/2] Mention if we hit an error - via g_warning() for now



commit 68ed3dab6c1d2da2415e7e9b38fe879e3acfe1c3
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Jul 12 13:04:15 2012 +0100

    Mention if we hit an error - via g_warning() for now

 src/ostree/ostree-pull.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c
index d1cc5ee..9b1f7c4 100644
--- a/src/ostree/ostree-pull.c
+++ b/src/ostree/ostree-pull.c
@@ -195,8 +195,11 @@ check_outstanding_requests_handle_error (OtPullData          *pull_data,
       pull_data->outstanding_checksum_requests == 0 &&
       (pull_data->loose_files == NULL || g_hash_table_size (pull_data->loose_files) == 0))
     g_main_loop_quit (pull_data->loop);
+
   if (error)
     {
+      g_warning ("Caught error: %s", error->message);
+
       if (!pull_data->caught_error)
         {
           pull_data->caught_error = TRUE;



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