IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15752


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

handle db i/o errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/LoadImages.c

    r7917 r15752  
    33Image *LoadImages (int *nimage) {
    44
     5  int status;
    56  char *catdir, filename[256];
    67  Image *image;
     
    2829  }
    2930
    30   dvo_image_load (&db, TRUE, FALSE);
     31  status = dvo_image_load (&db, TRUE, FALSE);
    3132  gfits_db_close (&db);
     33
     34  if (!status) {
     35    gprint (GP_ERR, "problem loading image database table\n");
     36    return (NULL);
     37  }
    3238
    3339  image = gfits_table_get_Image (&db.ftable, nimage, &db.swapped);
Note: See TracChangeset for help on using the changeset viewer.