IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2007, 2:43:27 PM (18 years ago)
Author:
Paul Price
Message:

Propagating error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSFtry.c

    r15697 r15705  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-11-27 03:14:57 $
     7 *  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-11-28 00:43:27 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    247247
    248248    // XXX this function wants aperture radius for pmSourcePhotometry
    249     pmPSFtryMetric (psfTry, options->radius);
     249    if (!pmPSFtryMetric (psfTry, options->radius)) {
     250        psError(PS_ERR_UNKNOWN, false, "Attempt to fit PSF with model %s failed.", modelName);
     251        return NULL;
     252    }
     253
    250254    psLogMsg ("psphot.pspsf", 3, "try model %s, ap-fit: %f +/- %f : sky bias: %f\n",
    251255              modelName, psfTry->psf->ApResid, psfTry->psf->dApResid, psfTry->psf->skyBias);
Note: See TracChangeset for help on using the changeset viewer.