IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2007, 4:02:48 AM (19 years ago)
Author:
rhl
Message:

Call psError in case of trouble

File:
1 edited

Legend:

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

    r13373 r13423  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-05-14 13:39:40 $
     5 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-05-18 14:02:48 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818#include <string.h>
    1919#include <pslib.h>
     20#include "pmErrorCodes.h"
    2021#include "pmHDU.h"
    2122#include "pmFPA.h"
     
    260261
    261262    if (model == NULL) {
     263        psError(PM_ERR_OBJECTS, true, "Model is NULL");
    262264        return false;
    263265    }
     
    280282        }
    281283    }
    282     if (apSum <= 0)
    283         return false;
     284    if (apSum <= 0) {
     285        psError(PM_ERR_PHOTOM, true, "apSum is negative");
     286        return false;
     287    }
    284288
    285289    *apMag = -2.5*log10(apSum);
Note: See TracChangeset for help on using the changeset viewer.