Index: trunk/psphot/src/psphotArguments.c
===================================================================
--- trunk/psphot/src/psphotArguments.c	(revision 24586)
+++ trunk/psphot/src/psphotArguments.c	(revision 24587)
@@ -105,5 +105,5 @@
     pmConfig *config = pmConfigRead(&argc, argv, PSPHOT_RECIPE);
     if (config == NULL) {
-        psError(PSPHOT_ERR_CONFIG, false, "Can't read site configuration");
+      psErrorStackPrint(stderr, "Can't read site configuration");
 	exit(PS_EXIT_CONFIG_ERROR);
     }
@@ -121,6 +121,5 @@
     if ((N = psArgumentGet (argc, argv, "-modeltest"))) {
         if (argc<=N+2) {
-          psError(PSPHOT_ERR_ARGUMENTS, true, 
-		  "Expected to see 2 more arguments; saw %d", argc - 1);
+          psErrorStackPrint(stderr, "Expected to see 2 more arguments; saw %d", argc - 1);
 	  exit(PS_EXIT_CONFIG_ERROR);
 	}
@@ -137,6 +136,5 @@
         if ((N = psArgumentGet (argc, argv, "-model"))) {
 	    if (argc<=N+1) {
-	      psError(PSPHOT_ERR_ARGUMENTS, true, 
-		      "Expected to see 1 more argument; saw %d", argc - 1);
+	      psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	      exit(PS_EXIT_CONFIG_ERROR);
 	    }
@@ -149,6 +147,5 @@
         if ((N = psArgumentGet (argc, argv, "-fitmode"))) {
 	    if (argc<=N+1) {
-	      psError(PSPHOT_ERR_ARGUMENTS, true, 
-		      "Expected to see 1 more argument; saw %d", argc - 1);
+	      psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	      exit(PS_EXIT_CONFIG_ERROR);
 	    }
@@ -159,6 +156,5 @@
         if ((N = psArgumentGet (argc, argv, "-fitset"))) {
 	    if (argc<=N+1) {
-	      psError(PSPHOT_ERR_ARGUMENTS, true, 
-		      "Expected to see 1 more argument; saw %d", argc - 1);
+	      psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	      exit(PS_EXIT_CONFIG_ERROR);
 	    }
@@ -172,6 +168,5 @@
     if ((N = psArgumentGet (argc, argv, "-photcode"))) {
         if (argc<=N+1) {
-	  psError(PSPHOT_ERR_ARGUMENTS, true, 
-		  "Expected to see 1 more argument; saw %d", argc - 1);
+	  psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	  exit(PS_EXIT_CONFIG_ERROR);
 	}
@@ -190,6 +185,5 @@
     if ((N = psArgumentGet (argc, argv, "-break"))) {
 	if (argc<=N+1) {
-	  psError(PSPHOT_ERR_ARGUMENTS, true, 
-		  "Expected to see 1 more argument; saw %d", argc - 1);
+	  psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	  exit(PS_EXIT_CONFIG_ERROR);
 	}
@@ -202,6 +196,5 @@
     if ((N = psArgumentGet (argc, argv, "-region"))) {
 	if (argc<=N+1) {
-	  psError(PSPHOT_ERR_ARGUMENTS, true, 
-		  "Expected to see 1 more argument; saw %d", argc - 1);
+	  psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	  exit(PS_EXIT_CONFIG_ERROR);
 	}
@@ -214,6 +207,5 @@
     if ((N = psArgumentGet (argc, argv, "-chip"))) {
 	if (argc<=N+1) {
-	  psError(PSPHOT_ERR_ARGUMENTS, true, 
-		  "Expected to see 1 more argument; saw %d", argc - 1);
+	  psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
 	  exit(PS_EXIT_CONFIG_ERROR);
 	}
