Skip to content

Commit

Permalink
message on variant reading error
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jan 30, 2024
1 parent 354bef2 commit b246b3e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bedder_vcf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ where
self.record_number += 1;
Some(Ok(Position::Vcf(Box::new(v))))
}
Err(e) => Some(Err(e)),
Err(e) => {
eprintln!(
"error reading vcf record: {} at line number: {}",
e, self.record_number
);
Some(Err(e))
}
}
}
fn name(&self) -> String {
Expand Down

0 comments on commit b246b3e

Please sign in to comment.