Changeset 1477
- Timestamp:
- 11/24/06 19:47:10 (2 years ago)
- Location:
- branches/palm-dev/src
- Files:
-
- 2 modified
-
palm_format.c (modified) (1 diff)
-
palm_sync.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/palm-dev/src/palm_format.c
r1266 r1477 22 22 #include "palm_format.h" 23 23 24 #include <opensync/opensync -xml.h>24 #include <opensync/opensync_xml.h> 25 25 #include <opensync/opensync-time.h> 26 26 #include <opensync/opensync-format.h> -
branches/palm-dev/src/palm_sync.c
r1266 r1477 126 126 int ret = dlp_OpenDB(env->socket, 0, dlpOpenReadWrite, name, &(db->handle)); 127 127 if (_psyncCheckReturn(env->socket, ret, error) != PSYNC_NO_ERROR) { 128 osync_error_ update(error, "Unable to open %s: %s", name, osync_error_print(error));128 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to open %s: %s", name, osync_error_print(error)); 129 129 goto error_free_db; 130 130 } … … 187 187 PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 188 188 if (err == PSYNC_ERROR_OTHER) { 189 osync_error_ update(error, "Unable to get next entry: %s", osync_error_print(error));189 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 190 190 goto error_free_buffer; 191 191 } else if (err == PSYNC_ERROR_NOT_FOUND) { … … 237 237 PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 238 238 if (err == PSYNC_ERROR_OTHER) { 239 osync_error_ update(error, "Unable to get next entry: %s", osync_error_print(error));239 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 240 240 goto error_free_buffer; 241 241 } else if (err == PSYNC_ERROR_NOT_FOUND) { … … 288 288 PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 289 289 if (err == PSYNC_ERROR_OTHER) { 290 osync_error_ update(error, "Unable to get next entry: %s", osync_error_print(error));290 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 291 291 goto error_free_buffer; 292 292 } else if (err == PSYNC_ERROR_NOT_FOUND) { … … 318 318 int ret = dlp_DeleteRecord(db->env->socket, db->handle, 0, id); 319 319 if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 320 osync_error_ update(error, "Unable to delete file: %s", osync_error_print(error));320 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to delete file: %s", osync_error_print(error)); 321 321 goto error; 322 322 } … … 344 344 #endif 345 345 if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 346 osync_error_ update(error, "Unable to write file: %s", osync_error_print(error));346 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to write file: %s", osync_error_print(error)); 347 347 goto error; 348 348 } … … 377 377 #endif 378 378 if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 379 osync_error_ update(error, "Unable to add file: %s", osync_error_print(error));379 osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to add file: %s", osync_error_print(error)); 380 380 goto error; 381 381 } … … 677 677 osync_trace(TRACE_INTERNAL, "test %i", ret); 678 678 if (_psyncCheckReturn(env->socket, ret, &error) != PSYNC_NO_ERROR) { 679 osync_error_update(&error, "Unable to read UserInfo: %s", osync_error_print(&error));679 //osync_error_update(&error, "Unable to read UserInfo: %s", osync_error_print(&error)); 680 680 goto error; 681 681 }
