Index: trunk/psphot/src/psphotSetup.c
===================================================================
--- trunk/psphot/src/psphotSetup.c	(revision 5350)
+++ trunk/psphot/src/psphotSetup.c	(revision 5622)
@@ -26,4 +26,5 @@
     // read header and image data from INPUT 
     char *input = psMetadataLookupPtr (&status, config, "IMAGE");
+    if (!status) psAbort ("psphot", "input image not specified");
     psFits *file = psFitsAlloc (input);
     header = psFitsReadHeader (header, file);
