IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14871


Ignore:
Timestamp:
Sep 17, 2007, 12:48:36 PM (19 years ago)
Author:
jhoblitt
Message:

change psFitsSetCompression() to report the cfitsio error stack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.c

    r14868 r14871  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-09-17 21:35:35 $
     9 *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-09-17 22:48:36 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    621621ERROR:
    622622    fits_set_compression_type(fits->fd, 0x0, &status);
    623     psError(PS_ERR_UNKNOWN, true, "failed to configure compression - disabling");
     623    char fitsErr[MAX_STRING_LENGTH];
     624    fits_get_errstatus(status, fitsErr);
     625    psError(PS_ERR_BAD_FITS, true,
     626        "Error while configuring compression. CFITSIO error: %s", fitsErr);
    624627    return false;
    625628}
Note: See TracChangeset for help on using the changeset viewer.