[evolution-data-server] EDataBookFactory: Improve error message for GOA connection failure.



commit d51cf9b88d13c56bc0ede36f776409aaa5fa474e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jun 19 14:36:46 2012 -0400

    EDataBookFactory: Improve error message for GOA connection failure.
    
    Fallout from a debugging session.
    
    The printed error message was simply
    
       libedata-book-WARNING **: The given address is empty
    
    which was not very helpful in tracking down the source.

 addressbook/libedata-book/e-data-book-factory.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-factory.c b/addressbook/libedata-book/e-data-book-factory.c
index 7d8f845..1faeb59 100644
--- a/addressbook/libedata-book/e-data-book-factory.c
+++ b/addressbook/libedata-book/e-data-book-factory.c
@@ -654,7 +654,9 @@ e_data_book_factory_init (EDataBookFactory *factory)
 			G_CALLBACK (data_book_factory_goa_account_removed_cb),
 			factory);
 	} else if (error != NULL) {
-		g_warning ("%s", error->message);
+		g_warning (
+			"Failed to connect to gnome-online-accounts: %s",
+			error->message);
 		g_error_free (error);
 	}
 #endif



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