Index: trunk/Mars/mcore/zfits.h
===================================================================
--- trunk/Mars/mcore/zfits.h	(revision 16603)
+++ trunk/Mars/mcore/zfits.h	(revision 16669)
@@ -157,8 +157,9 @@
                 if (tempValues[0] < 0 || tempValues[1] < 0)
                 {
+                    clear(rdstate()|ios::badbit);
 #ifdef __EXCEPTIONS
-                    throw runtime_error("ERROR: negative value in the catalog");
+                    throw runtime_error("Negative value in the catalog");
 #else
-                    gLog << ___err ___ << "ERROR: negative value in the catalog" << endl;
+                    gLog << ___err___ << "ERROR - negative value in the catalog" << endl;
                     return;
 #endif
