Changeset 16669 for trunk


Ignore:
Timestamp:
06/03/13 20:26:55 (11 years ago)
Author:
tbretz
Message:
Error messages wrongly formatted; setting the bad-bit was missing - how should one detect an error?
File:
1 edited

Legend:

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

    r16443 r16669  
    157157                if (tempValues[0] < 0 || tempValues[1] < 0)
    158158                {
     159                    clear(rdstate()|ios::badbit);
    159160#ifdef __EXCEPTIONS
    160                     throw runtime_error("ERROR: negative value in the catalog");
     161                    throw runtime_error("Negative value in the catalog");
    161162#else
    162                     gLog << ___err ___ << "ERROR: negative value in the catalog" << endl;
     163                    gLog << ___err___ << "ERROR - negative value in the catalog" << endl;
    163164                    return;
    164165#endif
Note: See TracChangeset for help on using the changeset viewer.