diff --git a/src/FqBaseBackend.cpp b/src/FqBaseBackend.cpp index 8d98b0c83d1f43a254373cb7317212df684f2c5e..bd841c40d459ab29bb124e85d400086f92340f40 100644 --- a/src/FqBaseBackend.cpp +++ b/src/FqBaseBackend.cpp @@ -137,7 +137,11 @@ int FqBaseBackend::getRead(const unsigned long& offset, char * fq_record) { if (i_f_desc==-1) throw std::runtime_error("No open file currently associated to this backend"); int res=lseek(i_f_desc,offset,SEEK_SET); - if (res==-1) err(errno,"fseek problem when trying to retrieve dna string."); + if (res==-1) { + // err(errno,"fseek problem when trying to retrieve dna string."); + // add exception for debug + throw errno; + } nread=read(i_f_desc,fq_record,MAX_FQ_RECORD_LENGTH); nb_lines=0; i=1;