IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27558


Ignore:
Timestamp:
Apr 1, 2010, 1:38:58 PM (16 years ago)
Author:
Paul Price
Message:

No need to abort --- just return the error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicAstrom.c

    r26259 r27558  
    11/** @file psastroMosaicAstrom.c
    22 *
    3  *  @brief 
     3 *  @brief
    44 *
    55 *  @ingroup libpsastro
     
    4343    if (!status) psAbort ("missing config value");
    4444
    45     // this should be in a loop with nIter = 
     45    // this should be in a loop with nIter =
    4646    for (int iter = 0; iter < nIter; iter++) {
    47         if (!psastroMosaicFit (fpa, recipe, outroot, iter)) return false;
     47        if (!psastroMosaicFit (fpa, recipe, outroot, iter)) return false;
    4848    }
    4949
     
    6060
    6161    if (psTraceGetLevel("psastro.dump") > 0) {
    62         // the last filename (see filenames in psastroMosaicFit)
    63         char filename[256];
    64         snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2);
     62        // the last filename (see filenames in psastroMosaicFit)
     63        char filename[256];
     64        snprintf (filename, 256, "%s.%d.dat", outroot, 2*nIter + 2);
    6565        psastroDumpMatches (fpa, filename);
    6666    }
     
    7575    }
    7676    if (!pmAstromWriteBilevelMosaic (updates, fpa, NONLIN_TOL)) {
    77         psAbort ("failed to save header terms");
     77        psError(psErrorCodeLast(), false, "Failed to save header terms");
     78        return false;
    7879    }
    7980
Note: See TracChangeset for help on using the changeset viewer.