IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2007, 5:52:32 PM (19 years ago)
Author:
jhoblitt
Message:

update psAbort() API

File:
1 edited

Legend:

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

    r11480 r11702  
    136136        MODECASE(DETTOOL_MODE_REGISTER_DETREND_IMFILE, register_detrend_imfileMode);
    137137        default:
    138             psAbort(argv[0], "invalid option (this should not happen)");
     138            psAbort("invalid option (this should not happen)");
    139139    }
    140140
     
    457457        psFree(iter);
    458458    } else {
    459         psAbort(config->argv[0],
    460                 "-exp_tag was not parsed correctly (this should not happen");
     459        psAbort(                "-exp_tag was not parsed correctly (this should not happen");
    461460    }
    462461
     
    476475    // we should have one rawExp row per exp_tag specified
    477476    if (psListLength(item->data.list) != psArrayLength(detrendExps)) {
    478         psAbort(config->argv[0],
    479     "an -exp_tag matched more then one rawExp (this should not happen");
     477        psAbort(    "an -exp_tag matched more then one rawExp (this should not happen");
    480478
    481479    }
     
    579577    // sanity check results
    580578    if (psArrayLength(detRuns) != 1) {
    581         psAbort(config->argv[0], "found more then one detRun matching det_id %ld(this should not happen)", det_id);
     579        psAbort("found more then one detRun matching det_id %ld(this should not happen)", det_id);
    582580        return false;
    583581    }
     
    12131211    // sanity check results
    12141212    if (psArrayLength(detRuns) != 1) {
    1215         psAbort(config->argv[0], "found more then one detRun matching det_id %ld(this should not happen)", det_id);
     1213        psAbort("found more then one detRun matching det_id %ld(this should not happen)", det_id);
    12161214        return false;
    12171215    }
     
    12661264    // sanity check the result... we should have only found one det_id
    12671265    if (psArrayLength(detRuns) != 1) {
    1268         psAbort(config->argv[0], "found more then one detRun matching det_id %d(this should not happen)", (psS32)atoi(det_id));
     1266        psAbort("found more then one detRun matching det_id %d(this should not happen)", (psS32)atoi(det_id));
    12691267        return false;                   // unreachable
    12701268    }
     
    16271625    // sanity check the result... we should have only found one det_id
    16281626    if (psArrayLength(newDetRuns) != 1) {
    1629         psAbort(config->argv[0], "found more then one detRun matching det_id %ld(this should not happen)", newDet_id);
     1627        psAbort("found more then one detRun matching det_id %ld(this should not happen)", newDet_id);
    16301628        return false;                   // unreachable
    16311629    }
     
    59625960        psFree(iter);
    59635961    } else {
    5964         psAbort(config->argv[0],
    5965                 "-exp_tag was not parsed correctly (this should not happen");
     5962        psAbort(                "-exp_tag was not parsed correctly (this should not happen");
    59665963    }
    59675964
     
    64626459    if (psArrayLength(detRuns) != 1) {
    64636460        // this should no happen
    6464         psAbort(config->argv[0],
    6465                 "database query return too many rows (this should not happen");
     6461        psAbort(                "database query return too many rows (this should not happen");
    64666462    }
    64676463
Note: See TracChangeset for help on using the changeset viewer.