Index: /trunk/Ohana/src/gastro2/src/ConfigInit.c
===================================================================
--- /trunk/Ohana/src/gastro2/src/ConfigInit.c	(revision 7995)
+++ /trunk/Ohana/src/gastro2/src/ConfigInit.c	(revision 7996)
@@ -11,5 +11,5 @@
     fprintf (stderr, "ERROR: can't find configuration file %s\n", file);
     if (file != (char *) NULL) free (file);
-    exit (0);
+    exit (1);
   }
   if (VERBOSE) fprintf (stderr, "loaded config file: %s\n", file);
@@ -54,8 +54,13 @@
   if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
 
+  if (NFIELD <= 0.0) {
+      fprintf (stderr, "NFIELD is not sensible: choose a non-zero number\n");
+      exit (1);
+  }
+
   if (strcasecmp (ROUGH_ASTROMETRY, "header") && 
       strcasecmp (ROUGH_ASTROMETRY, "config")) {
     fprintf (stderr, "ROUGH_ASTROMETRY must be one of: header, config\n");
-    exit (0);
+    exit (1);
   }
   free (config);
