Index: /trunk/Ohana/src/addstar/src/ConfigInit.c
===================================================================
--- /trunk/Ohana/src/addstar/src/ConfigInit.c	(revision 8516)
+++ /trunk/Ohana/src/addstar/src/ConfigInit.c	(revision 8517)
@@ -81,5 +81,5 @@
   ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
   if (!ScanConfig (config, "SKY_DEPTH",         "%d",  0, &SKY_DEPTH)) {
-    SKY_DEPTH = 3;
+    SKY_DEPTH = SKY_DEPTH_HST;
   }
   if (!ScanConfig (config, "SKY_TABLE",         "%s",  0, SKY_TABLE)) {
Index: /trunk/Ohana/src/addstar/src/getgsc.c
===================================================================
--- /trunk/Ohana/src/addstar/src/getgsc.c	(revision 8516)
+++ /trunk/Ohana/src/addstar/src/getgsc.c	(revision 8517)
@@ -17,5 +17,5 @@
 
   /* load regions from GSC table, restrict to patch */
-  sky = SkyTableFromGSC (GSCFILE, 2, VERBOSE);
+  sky = SkyTableFromGSC (GSCFILE, SKY_DEPTH_HST, VERBOSE);
   SkyTableSetFilenames (sky, GSCDIR, "cpt");
   skylist = SkyListByPatch (sky, -1, patch);
@@ -33,6 +33,6 @@
     free (gsc);
   }
-  
   SkyTableFree (sky);
+
   if (VERBOSE) fprintf (stderr, "%d stars from HST GSC\n", Nstars);
   *NSTARS = Nstars;
@@ -54,6 +54,5 @@
   if (f == NULL) {
     fprintf (stderr, "ERROR: can't find catalog file %s\n", filename);
-    *nstars = Nstars;
-    return (stars);
+    exit (2);
   }
   
