Index: /trunk/psModules/src/objects/pmPSFtry.c
===================================================================
--- /trunk/psModules/src/objects/pmPSFtry.c	(revision 10377)
+++ /trunk/psModules/src/objects/pmPSFtry.c	(revision 10378)
@@ -5,6 +5,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-11-26 22:24:45 $
+ *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-01 19:27:38 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -140,5 +140,8 @@
 
     // stage 2: construct a psf (pmPSF) from this collection of model fits
-    pmPSFFromPSFtry (psfTry, applyWeights);
+    if (!pmPSFFromPSFtry (psfTry, applyWeights)) {
+        psError(PS_ERR_UNKNOWN, false, "failed to construct a psf model from collection of sources");
+        return NULL;
+    }
 
     // stage 3: refit with fixed shape parameters
