summaryrefslogtreecommitdiff
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-11-09 22:44:38 +0000
commit74b6906479f60090af2cb33fe452c5ce1edb8584 (patch)
treee3929ed684267590800954103afabb8fe8744d30
parentd1faadca6f27d746f0e8e90b119a6ccd95c544e0 (diff)
downloadlibgdata-74b6906479f60090af2cb33fe452c5ce1edb8584.tar.gz
tasks: Handle an additional form of AUTHENTICATION_REQUIRED error
Apparently there are two ‘reason’ codes which correspond to this.
-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,