[libgdata/libgdata-0-16] tasks: Handle an additional form of AUTHENTICATION_REQUIRED error



commit 74b6906479f60090af2cb33fe452c5ce1edb8584
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Sep 21 17:30:06 2014 +0100

    tasks: Handle an additional form of AUTHENTICATION_REQUIRED error
    
    Apparently there are two ‘reason’ codes which correspond to this.

 gdata/services/tasks/gdata-tasks-service.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/tasks/gdata-tasks-service.c b/gdata/services/tasks/gdata-tasks-service.c
index 725fa7a..7be4090 100644
--- a/gdata/services/tasks/gdata-tasks-service.c
+++ b/gdata/services/tasks/gdata-tasks-service.c
@@ -196,7 +196,8 @@ parse_error_response (GDataService *self, GDataOperationType operation_type,
                                               "calls recently. Please wait a "
                                               "few minutes and try again."));
                        } else if (g_strcmp0 (domain, "global") == 0 &&
-                                  g_strcmp0 (reason, "authError") == 0) {
+                                  (g_strcmp0 (reason, "authError") == 0 ||
+                                   g_strcmp0 (reason, "required") == 0)) {
                                /* Authentication problem */
                                g_set_error (error, GDATA_SERVICE_ERROR,
                                             GDATA_SERVICE_ERROR_AUTHENTICATION_REQUIRED,


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