IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2006, 1:27:12 PM (20 years ago)
Author:
jhoblitt
Message:

add db error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2insertDoneFrames.c

    r6063 r6131  
    33
    44// select pending frames (exposure+images) which are done/not done
    5 bool p2insertDoneFrames (p2Config *config, psArray *doneFrames) {
     5bool p2insertDoneFrames(p2Config *config, psArray *doneFrames) {
    66
    77    for (int i = 0; i < doneFrames->n; i++) {
     
    1111        psArray *doneImages = doneFrame->images;
    1212       
    13         p2DoneExpInsertObject(config->database, doneExposure);
     13        if (!p2DoneExpInsertObject(config->database, doneExposure)) {
     14            psError(PS_ERR_UNKNOWN, false, "database access failed");
     15            return false;
     16        }
    1417
    1518        for (int i = 0; i < doneImages->n; i++) {
    16             p2DoneImfileInsertObject(config->database, doneImages->data[i]);
     19            if (!p2DoneImfileInsertObject(config->database, doneImages->data[i])) {
     20            psError(PS_ERR_UNKNOWN, false, "database access failed");
     21            return false;
     22            }
    1723        }
    1824    }
Note: See TracChangeset for help on using the changeset viewer.