Changeset 1696

Show
Ignore:
Timestamp:
02/08/07 13:04:51 (2 years ago)
Author:
mjahn
Message:

fixes error handling. use only osync_error_is_set if error == NULL else use osync_error_update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/osengine/osengine_engine.c

    r1683 r1696  
    150150 
    151151        if (!objtype){ 
    152                 osync_error_set(&error, OSYNC_ERROR_GENERIC, 
    153                         "ObjType not set for uid %s.", uid); 
     152                if (!osync_error_is_set(&error)) { 
     153                        osync_error_set(&error, OSYNC_ERROR_GENERIC, 
     154                                "ObjType not set for uid %s.", uid); 
     155                } else { 
     156                        osync_error_update(&error, 
     157                                "ObjType not set for uid %s.", uid); 
     158                } 
    154159                goto error; 
    155160        }