Index: trunk/ppImage/src/ppImagePhotom.c
===================================================================
--- trunk/ppImage/src/ppImagePhotom.c	(revision 12821)
+++ trunk/ppImage/src/ppImagePhotom.c	(revision 13838)
@@ -36,5 +36,8 @@
 
 	    // run the actual photometry analysis
-	    psphotReadout (config, view);
+	    if (!psphotReadout (config, view)) {
+		psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);
+		return false;
+	    }
 	}
     }
