summaryrefslogtreecommitdiff
path: root/gdata/services
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2014-09-21 17:30:06 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2014-09-21 17:42:02 +0100
commit181a74e0110d42dfb0d88ec98d29a6287ceda85b (patch)
treeb7bc32180100494d9ecfbefc992107d649764eb2 /gdata/services
parent14cc74587533428d6bf26cdbaa35601d16d721ee (diff)
downloadlibgdata-181a74e0110d42dfb0d88ec98d29a6287ceda85b.tar.gz
tasks: Handle an additional form of AUTHENTICATION_REQUIRED error
Apparently there are two ‘reason’ codes which correspond to this.
Diffstat (limited to 'gdata/services')
-rw-r--r--gdata/services/tasks/gdata-tasks-service.c3
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 725fa7a2..7be40902 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,