Skip to content

Commit

Permalink
slightly longer error for malformed bed record
Browse files Browse the repository at this point in the history
  • Loading branch information
wdecoster committed Aug 22, 2024
1 parent 8ab83b6 commit 3f3ebf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repeats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl RepeatIntervalIterator {
let mut reader = bed::Reader::from_file(region_file).expect("Problem reading bed file!");
let mut data = Vec::new();
for record in reader.records() {
let rec = record.expect("Error reading bed record.");
let rec = record.expect("Error reading bed record. Please verify bed file is in the correct format and without header.");
let repeat = RepeatInterval::from_bed(&rec, fasta);
if let Some(repeat) = repeat {
data.push(repeat);
Expand Down

0 comments on commit 3f3ebf0

Please sign in to comment.