]> git.donarmstrong.com Git - samtools.git/blobdiff - knetfile.c
Bug fix - faidx on RAZF compressed files now working.
[samtools.git] / knetfile.c
index 0dee408c2255f8330bccbd9a1f58565b0ebd0cdb..da992ede02016e153fca2b824813eb34c3b9880c 100644 (file)
@@ -536,6 +536,7 @@ off_t knet_seek(knetFile *fp, int64_t off, int whence)
                 * while fseek() returns zero on success. */
                off_t offset = lseek(fp->fd, off, whence);
                if (offset == -1) {
+            fprintf(stderr,"[knet_seek] %s\n", strerror(errno));
                        return -1;
                }
                fp->offset = offset;
@@ -567,6 +568,7 @@ off_t knet_seek(knetFile *fp, int64_t off, int whence)
                return fp->offset;
        }
        errno = EINVAL;
+    fprintf(stderr,"[knet_seek] %s\n", strerror(errno));
        return -1;
 }