Index: trunk/psphot/src/psphotReadout.c
===================================================================
--- trunk/psphot/src/psphotReadout.c	(revision 7329)
+++ trunk/psphot/src/psphotReadout.c	(revision 7342)
@@ -11,5 +11,7 @@
     // XXX does this need to invoke I/O?
     // XXX move this input the psphotImageLoop level?
-    pmReadoutSetMaskWeight (readout);
+    if (!pmReadoutSetMaskWeight (readout)) {
+	return false;
+    }
 
     // I have a valid mask, now mask in the analysis region of interest
@@ -59,5 +61,8 @@
 
     // measure aperture photometry corrections
-    psphotApResid (readout, sources, recipe, psf);
+    if (!psphotApResid (readout, sources, recipe, psf)) {
+	psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
+	return false;
+    }
 
     // calculate source magnitudes
