Changeset 12493 for trunk/FACT++


Ignore:
Timestamp:
11/11/11 03:18:42 (13 years ago)
Author:
tbretz
Message:
Updated an error message and a fixed a problem with non-array columns.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsdump.cc

    r12150 r12493  
    578578                return false;
    579579            }
    580             if (columnEnd > cCol->width())
     580            if (columnEnd>1 && columnEnd > cCol->width())
    581581            {
    582582                cerr << "ERROR - End range for column " << columnNameOnly << " is greater than the last element (" << cCol->width() << " vs " << columnEnd << "). Aborting" << endl;
     
    676676        if (status)
    677677        {
    678             cerr << "An error occurred while reading fits row #" << i << " error code: " << status << endl;
     678            char text[30];//max length of cfitsio error strings (from doc)
     679            fits_get_errstatus(status, text);
     680
     681            cerr << "Reading row " << i << " failed: " << text << " (fits_insert_rows,rc=" << status << ")" << endl;
    679682            break;
    680683        }
Note: See TracChangeset for help on using the changeset viewer.