Index: /trunk/psphot/src/psphot.c
===================================================================
--- /trunk/psphot/src/psphot.c	(revision 7338)
+++ /trunk/psphot/src/psphot.c	(revision 7339)
@@ -5,4 +5,9 @@
     psTimerStart ("complete");
 
+    psphotErrorRegister();		// register our error codes/messages
+
+    // basic pslib options
+    psLogSetFormat ("M");
+
     // load implementation-specific models
     psphotModelGroupInit ();
@@ -10,4 +15,8 @@
     // load command-line arguments, options, and system config data
     pmConfig *config = psphotArguments (&argc, argv);
+    if (config == NULL) {
+	psErrorStackPrint(stderr, "");
+	exit(1);
+    }
 
     // load input data (config and images (signal, noise, mask)
