Index: trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc	(revision 5948)
+++ trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc	(revision 5949)
@@ -980,5 +980,5 @@
 // -------------------------------------------------------------
 //
-// If MBadPixelsPix::IsBad():
+// If MBadPixelsPix::IsUnsuitable(MBadPixelsPix::kUnsuitableRun):
 // - calls MHCalibrationPix::SetExcluded()
 //
@@ -1198,6 +1198,9 @@
 
   if (hist.IsEmpty() || hist.IsOnlyOverflow() || hist.IsOnlyUnderflow())
-    return;
-  
+    {
+      *fLog << err << GetDescriptor()
+	    << ": Only overflow or underflow in high-gain pixel: " << pix.GetPixId() << endl;
+      return;
+    }  
   //
   // 2) Fit the Hi Gain histograms with a Gaussian
@@ -1279,7 +1282,9 @@
 
   if (hist.IsEmpty() || hist.IsOnlyOverflow() || hist.IsOnlyUnderflow())
+    {
+      *fLog << err << GetDescriptor()
+	    << ": Only overflow or underflow in low-gain pixel: " << pix.GetPixId() << endl;
       return;
-  
-
+    }  
   //
   // 2) Fit the Hi Gain histograms with a Gaussian
