Changeset 17750 for trunk/Mars/mcore


Ignore:
Timestamp:
05/01/14 17:32:02 (11 years ago)
Author:
tbretz
Message:
Improved error message.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r17607 r17750  
    335335            if (bytes!=bytes_per_row)
    336336            {
    337 #ifdef __EXCEPTIONS
    338                 throw std::runtime_error("Column size mismatch");
    339 #else
    340                 gLog << ___err___ << "ERROR - Column size mismatch" << std::endl;
     337                std::ostringstream str;
     338                str << "Sum of bytes in columns [" << bytes << "] does not match (Z)NAXIS2 [" << bytes_per_row << "].";
     339
     340#ifdef __EXCEPTIONS
     341                throw std::runtime_error(str.str());
     342#else
     343                gLog << ___err___ << "ERROR - " << str.str() << std::endl;
    341344                return;
    342345#endif
Note: See TracChangeset for help on using the changeset viewer.