From 8c132db45ec66cf170d1ad481aaaebb92c9cc03e Mon Sep 17 00:00:00 2001 From: Heng Li Date: Thu, 24 Feb 2011 14:36:30 +0000 Subject: [PATCH] more meaningful BAM truncation message --- bam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bam.c b/bam.c index 521c1dd..96aace2 100644 --- a/bam.c +++ b/bam.c @@ -79,7 +79,7 @@ bam_header_t *bam_header_read(bamFile fp) // with ESPIPE. Suppress the error message in this case. if (errno != ESPIPE) perror("[bam_header_read] bgzf_check_EOF"); } - else if (i == 0) fprintf(stderr, "[bam_header_read] EOF marker is absent.\n"); + else if (i == 0) fprintf(stderr, "[bam_header_read] EOF marker is absent. The input is probably truncated.\n"); // read "BAM1" magic_len = bam_read(fp, buf, 4); if (magic_len != 4 || strncmp(buf, "BAM\001", 4) != 0) { -- 2.39.2