Example #1
0
static void hdf_error(const char *filename, int status,
                      const char *sourcefile, int lineno)
{
    fprintf(stderr, "%s:%i: ", sourcefile, lineno);
    fprintf(stderr, "Error reading %s: %s\n", filename, HEstring(HEvalue(1)));
    exit(2);
}
Example #2
0
void coda_hdf4_add_error_message(void)
{
    int error = HEvalue(1);

    if (error != 0)
    {
        coda_add_error_message("[HDF4] %s", HEstring(error));
    }
}
Example #3
0
/* HDF Error Reporting. If there is an HDF error, then print all the
 * errors via CuError and clear the HDF error stack.
 */
void cuerrorreport_hdf() {
	int32 i=0, e;
	const char *estr;

	/* Print all errors stored in the error HDF stack. */
	while ((e = HEvalue(i)) != DFE_NONE) {
		estr = HEstring(e);
		CuError(CU_DRIVER,"HDF reported error(s) - (%s)", estr);
		++i;
	}
	HEclear(); /* Clear the HDF error stack. */
}