[gnome-online-accounts/wip/rishi/facebook: 11/14] foursquare: Make the WARNINGs consistent with other providers



commit 4db95a8f8371c3eb76c6e66681fa1de4ea6ffe1f
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Aug 2 18:17:40 2017 +0200

    foursquare: Make the WARNINGs consistent with other providers

 src/goabackend/goafoursquareprovider.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/goabackend/goafoursquareprovider.c b/src/goabackend/goafoursquareprovider.c
index be82f14..cf59b1f 100644
--- a/src/goabackend/goafoursquareprovider.c
+++ b/src/goabackend/goafoursquareprovider.c
@@ -176,7 +176,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
   json_object = json_node_get_object (json_parser_get_root (parser));
   if (!json_object_has_member (json_object, "response"))
     {
-      g_warning ("Did not find response object in JSON data");
+      g_warning ("Did not find response in JSON data");
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
@@ -187,7 +187,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
   json_object = json_object_get_object_member (json_object, "response");
   if (!json_object_has_member (json_object, "user"))
     {
-      g_warning ("Did not find user object in JSON data");
+      g_warning ("Did not find response.user in JSON data");
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
@@ -198,7 +198,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
   json_object = json_object_get_object_member (json_object, "user");
   if (!json_object_has_member (json_object, "id"))
     {
-      g_warning ("Did not find id in JSON data");
+      g_warning ("Did not find response.user.id in JSON data");
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
@@ -207,7 +207,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
     }
   if (!json_object_has_member (json_object, "contact"))
     {
-      g_warning ("Did not find contact object in JSON data");
+      g_warning ("Did not find response.user.contact in JSON data");
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,
@@ -220,7 +220,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
   json_object = json_object_get_object_member (json_object, "contact");
   if (!json_object_has_member (json_object, "email"))
     {
-      g_warning ("Did not find email in JSON data");
+      g_warning ("Did not find response.user.contact.email in JSON data");
       g_set_error (error,
                    GOA_ERROR,
                    GOA_ERROR_FAILED,


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