IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11303


Ignore:
Timestamp:
Jan 25, 2007, 6:40:42 PM (19 years ago)
Author:
magnier
Message:

catch errors in pmSourceWriteCMF

File:
1 edited

Legend:

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

    r11292 r11303  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-01-26 00:05:18 $
     5 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-01-26 04:40:42 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    323323        psFree (exttype);
    324324
    325         pmSourcesWriteCMF (file->fits, sources, outhead, dataname);
     325        if (!pmSourcesWriteCMF (file->fits, sources, outhead, dataname)) {
     326            psError(PS_ERR_IO, false, "writing CMF data to %s\n", file->filename);
     327            psFree (headname);
     328            psFree (dataname);
     329            psFree (outhead);
     330            return false;
     331        }
     332
    326333        psTrace ("pmFPAfile", 5, "wrote ext data %s (type: %d)\n", file->filename, file->type);
    327334
Note: See TracChangeset for help on using the changeset viewer.