[libgdata] tasks: Handle an additional form of AUTHENTICATION_REQUIRED error
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tasks: Handle an additional form of AUTHENTICATION_REQUIRED error
- Date: Sun, 21 Sep 2014 16:42:51 +0000 (UTC)
commit 181a74e0110d42dfb0d88ec98d29a6287ceda85b
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]