IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2008, 6:48:35 PM (18 years ago)
Author:
bills
Message:

Various updates and additions

Location:
trunk/pstamp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src

    • Property svn:ignore
      •  

        old new  
        11ppstamp
         2pstampparse
         3pstamprequest
        24Makefile
        35Makefile.in
  • trunk/pstamp/src/pstamprequest.c

    r16239 r16593  
    371371    table->data[0] = options->md;
    372372
    373     psFitsWriteTable(fitsFile, NULL, table, STAMP_REQUEST_EXTNAME);
    374 
    375     psFitsClose(fitsFile);
     373    if (!psFitsWriteTable(fitsFile, NULL, table, STAMP_REQUEST_EXTNAME)) {
     374        psError(PS_ERR_IO, false, "failed to write fits table");
     375        return false;
     376    }
     377
     378    if (!  psFitsClose(fitsFile)) {
     379        psError(PS_ERR_IO, false, "failed to close fits table");
     380        return false;
     381    }
    376382
    377383    return true;
     
    415421    }
    416422
    417 //    psMetadataPrint(stderr, options->md, 0);
     423    // psMetadataPrint(stderr, options->md, 0);
    418424
    419425    if (writeTable(options)) {
    420426        return 0;
    421427    } else {
     428        psErrorStackPrint(stderr, "failed to create request table");
    422429        // XXX: we should have variable status codes that indicate what the problem was
    423430        return 1;
Note: See TracChangeset for help on using the changeset viewer.