Index: /trunk/psphot/src/psphotChoosePSF.c
===================================================================
--- /trunk/psphot/src/psphotChoosePSF.c	(revision 11305)
+++ /trunk/psphot/src/psphotChoosePSF.c	(revision 11306)
@@ -67,5 +67,5 @@
         if (!psfTrendMask) {
             psError(PSPHOT_ERR_PSF, true, "Unable to construct polynomial from PSF.TREND.MASK in the recipe");
-            return false;
+            return NULL;
         }
     }
@@ -141,5 +141,5 @@
     // use the best model:
     if (bestN < 0) {
-        psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF");
+        psError (PSPHOT_ERR_DATA, false, "Failed to fit any models when choosing PSF");
         psFree (models);
         return NULL;
