IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2007, 3:42:40 PM (19 years ago)
Author:
eugene
Message:

handle i/o errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/matrix/F_load_M.c

    r15743 r15751  
    3131  nbytes = fread (matrix[0].buffer, sizeof(char), Nbytes, f);
    3232  if (nbytes != Nbytes) {
    33     perror ("fits matrix read error");
     33    perror ("FITS file is short in ##__func__");
     34    if (nbytes != gfits_data_min_size (header)) {
     35      fprintf (stderr, "error: fits read error in %s", __func__);
     36      return (FALSE);
     37    }
     38    fprintf (stderr, "warning: file missing pad\n");
    3439  }
    3540
Note: See TracChangeset for help on using the changeset viewer.