Index: trunk/psphot/src/psphotMagnitudes.c
===================================================================
--- trunk/psphot/src/psphotMagnitudes.c	(revision 27657)
+++ trunk/psphot/src/psphotMagnitudes.c	(revision 28013)
@@ -1,5 +1,5 @@
 # include "psphotInternal.h"
 
-bool psphotMagnitudes (pmConfig *config, const pmFPAview *view)
+bool psphotMagnitudes (pmConfig *config, const pmFPAview *view, const char *filerule)
 {
     bool status = true;
@@ -21,5 +21,5 @@
 
 	// find the currently selected readout
-	pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PSPHOT.INPUT", i); // File of interest
+	pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, i); // File of interest
 	psAssert (file, "missing file?");
 
@@ -37,5 +37,5 @@
 
 	if (!psphotMagnitudesReadout (config, recipe, view, readout, sources, psf)) {
-            psError (PSPHOT_ERR_CONFIG, false, "failed to measure magnitudes for PSPHOT.INPUT entry %d", i);
+            psError (PSPHOT_ERR_CONFIG, false, "failed to measure magnitudes for %s entry %d", filerule, i);
 	    return false;
 	}
