next up previous contents FITSIO Home
Next: File-level I/O Routines Up: CFITSIO Routines Previous: CFITSIO Routines   Contents

Error Reporting

void fits_report_error(FILE *stream, status)

This routine prints out information about any error that has occurred. Whenever any CFITSIO routine encounters an error it usually writes a message describing the nature of the error to an internal error message stack and then returns with a positive integer status value. Passing the error status value to this routine will cause a generic description of the error and all the messages from the internal CFITSIO error stack to be printed to the specified stream. The stream parameter is usually set equal to "stdout" or "stderr".