IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2007, 11:35:11 AM (19 years ago)
Author:
jhoblitt
Message:

make -definerun -warp_id required

File:
1 edited

Legend:

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

    r12029 r12052  
    183183    psMetadataItem *item = NULL;
    184184    while ((item = psListGetAndIncrement(iter))) {
     185        // if the value is NULL this is probably the first pass through the
     186        // loop and -warp_id was not specified at all
     187        if (!item->data.V) {
     188            if (!psDBRollback(config->dbh)) {
     189                psError(PS_ERR_UNKNOWN, false, "database error");
     190            }
     191            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -warp_id");
     192            return false;
     193        }
    185194        if (!stackInputSkyfileInsert(config->dbh, run->stack_id, atoi((char *)item->data.V))) {
    186195            if (!psDBRollback(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.