IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27098


Ignore:
Timestamp:
Feb 25, 2010, 5:31:28 PM (16 years ago)
Author:
Paul Price
Message:

Hadn't fixed up pswarp to work with the new error system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarp.c

    r27096 r27098  
    2020    fprintf(stderr, "    [-variance variance.fits] : provide a corresponding variance image\n");
    2121    psErrorStackPrint(stderr, "\n");
    22     exit (2);
     22    exit(PS_EXIT_CONFIG_ERROR);
    2323}
    2424
     
    3838    // load identify the data sources
    3939    if (!pswarpParseCamera(config)) {
    40         psErrorStackPrint(stderr, "error setting up the camera\n");
    41         exit(PS_EXIT_CONFIG_ERROR);
     40        goto DIE;
    4241    }
    4342
    4443    if (!pswarpOptions(config)) {
    45         psErrorStackPrint(stderr, "error parsing options\n");
    46         exit(PS_EXIT_SYS_ERROR);
     44        goto DIE;
    4745    }
    4846
    4947    // load the skycell layout information
    5048    if (!pswarpDefine(config)) {
    51         psErrorStackPrint(stderr, "error loading output definition\n");
    52         exit(PS_EXIT_CONFIG_ERROR);
     49        goto DIE;
    5350    }
    5451
    5552    // load and warp
    5653    if (!pswarpLoop(config)) {
    57         psErrorStackPrint(stderr, "error warping data\n");
    58         exit(PS_EXIT_DATA_ERROR);
     54        goto DIE;
    5955    }
    6056
    6157    psLogMsg("pswarp", PS_LOG_INFO, "complete pswarp run: %f sec\n", psTimerMark("pswarp"));
    6258
    63     psExit exitValue = pswarpCleanup(config);
    64     exit(exitValue);
     59DIE:
     60    return pswarpCleanup(config);
    6561}
Note: See TracChangeset for help on using the changeset viewer.