[libgdata] [core] Catch HTTP 412 errors as version mismatches



commit 9fd77968057abc845bd4ee029fa95241cbf67508
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Mar 19 15:54:38 2010 +0000

    [core] Catch HTTP 412 errors as version mismatches

 gdata/gdata-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 94c8299..1e7d490 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -380,6 +380,7 @@ real_parse_error_response (GDataService *self, GDataOperationType operation_type
 				     _("The requested resource was not found: %s"), response_body);
 			return;
 		case 409:
+		case 412:
 			g_set_error (error, GDATA_SERVICE_ERROR, GDATA_SERVICE_ERROR_CONFLICT,
 				     /* Translators: the parameter is an error message returned by the server. */
 				     _("The entry has been modified since it was downloaded: %s"), response_body);



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