Skip to content

Commit

Permalink
bed/record: Return ParseError::MissingScore instead of ParseError::Mi…
Browse files Browse the repository at this point in the history
…ssingName for score BED column
  • Loading branch information
ghuls authored and zaeleus committed Jun 14, 2024
1 parent e3ee937 commit 351abd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noodles-bed/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ where
{
fields
.next()
.ok_or(ParseError::MissingName)
.ok_or(ParseError::MissingScore)
.and_then(|s| match s {
MISSING_NUMBER => Ok(None),
_ => s.parse().map(Some).map_err(ParseError::InvalidScore),
Expand Down

0 comments on commit 351abd0

Please sign in to comment.