Index: /branches/eam_branches/ipp-20101205/psphot/src/psphotFindFootprints.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psphot/src/psphotFindFootprints.c	(revision 30212)
+++ /branches/eam_branches/ipp-20101205/psphot/src/psphotFindFootprints.c	(revision 30213)
@@ -21,6 +21,7 @@
     psArray *footprints = pmFootprintsFind (significance, threshold, npixMin);
 
-    pmFootprintsAssignPeaks(footprints, detections->peaks);
-    // XXX handle the error conditions here
+    if (pmFootprintsAssignPeaks(footprints, detections->peaks) != PS_ERR_NONE) {
+	psAbort ("inconsistent peaks and footprints");
+    }
 
     // footprints now owns the peaks; after culling (below), we will rebuild the peaks array
