63f915b4c381054700db900e0f999c499e1054ca
braney
  Thu Dec 18 15:02:49 2014 -0800
upgrade to new version of HAL.
diff --git src/hg/lib/trackHubCheck.c src/hg/lib/trackHubCheck.c
index aa7406a..740edcf 100644
--- src/hg/lib/trackHubCheck.c
+++ src/hg/lib/trackHubCheck.c
@@ -72,32 +72,36 @@
 		struct vcfFile *vcf = vcfTabixFileMayOpen(bigDataUrl, NULL, 0, 0, 1, 1);
 		if (vcf == NULL)
 		    // Warnings already indicated whether the tabix file is missing etc.
 		    errAbort("Couldn't open %s and/or its tabix index (.tbi) file.  "
 			     "See http://genome.ucsc.edu/goldenPath/help/vcf.html",
 			     bigDataUrl);
 		vcfFileFree(&vcf);
 		}
 	    else if (startsWithWord("bam", type))
 		{
 		bamFileAndIndexMustExist(bigDataUrl);
 		}
 #ifdef USE_HAL
 	    else if (startsWithWord("halSnake", type))
 		{
-		int handle = halOpenLOD(bigDataUrl);
-		halClose(handle);
+		char *errString;
+		int handle = halOpenLOD(bigDataUrl, &errString);
+		if (handle < 0)
+		    errAbort("HAL open error: %s\n", errString);
+		if (halClose(handle, &errString) < 0)
+		    errAbort("HAL close error: %s\n", errString);
 		}
 #endif
 	    else
 		errAbort("unrecognized type %s in genome %s track %s", type, genome->name, tdb->track);
 	    freez(&bigDataUrl);
 	    }
 	}
     }
 errCatchEnd(errCatch);
 if (errCatch->gotError)
     {
     retVal = 1;
     dyStringPrintf(errors, "%s", errCatch->message->string);
     }
 errCatchFree(&errCatch);