e235ab378572d02b9e814c1f7d8d76e76d312f48 angie Mon Jan 6 10:20:20 2014 -0800 Changing warn to errAbort as suggested by Jonathan (since that is more consistent with how bamFileAndIndexMustExist works).refs #12401 diff --git src/lib/bamFile.c src/lib/bamFile.c index b3fcffe..3895332 100644 --- src/lib/bamFile.c +++ src/lib/bamFile.c @@ -581,31 +581,31 @@ #else // If we're not compiling with samtools, make stub routines so compile won't fail: boolean bamFileExists(char *bamFileName) /* Return TRUE if we can successfully open the bam file and its index file. */ { warn(COMPILE_WITH_SAMTOOLS, "bamFileExists"); return FALSE; } void bamFileAndIndexMustExist(char *fileOrUrl) /* Open both a bam file and its accompanying index or errAbort; this is what it * takes for diagnostic info to propagate up through errCatches in calling code. */ { -warn(COMPILE_WITH_SAMTOOLS, "bamFileAndIndexMustExist"); +errAbort(COMPILE_WITH_SAMTOOLS, "bamFileAndIndexMustExist"); } samfile_t *bamOpen(char *fileOrUrl, char **retBamFileName) /* Return an open bam file */ { warn(COMPILE_WITH_SAMTOOLS, "bamOpen"); return FALSE; } void bamClose(samfile_t **pSamFile) /* Close down a samefile_t */ { errAbort(COMPILE_WITH_SAMTOOLS, "bamClose"); }