[evolution-data-server] Fix EDataBook error conversions to include E_CLIENT_ERROR_OUT_OF_SYNC



commit e387605c40c987213ea1a5d68879fd8dbf858397
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Feb 15 17:35:55 2013 +0900

    Fix EDataBook error conversions to include E_CLIENT_ERROR_OUT_OF_SYNC
    
    This causes the test-client-write-write test to pass again.

 addressbook/libedata-book/e-data-book.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 6591716..2b3ea6d 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -402,6 +402,11 @@ data_book_convert_to_client_error (GError *error)
                        error->code = E_CLIENT_ERROR_NOT_OPENED;
                        break;
 
+               case E_DATA_BOOK_STATUS_OUT_OF_SYNC:
+                       error->domain = E_CLIENT_ERROR;
+                       error->code = E_CLIENT_ERROR_OUT_OF_SYNC;
+                       break;
+
                case E_DATA_BOOK_STATUS_UNSUPPORTED_FIELD:
                case E_DATA_BOOK_STATUS_OTHER_ERROR:
                case E_DATA_BOOK_STATUS_INVALID_SERVER_VERSION:


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