From 25fc10d363dea438e54e51a1a8106ea9efc02440 Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Fri, 14 Jun 2024 16:40:57 +0200 Subject: [PATCH] bed/record: Return ParseError::MissingScore instead of ParseError::MissingName for score BED column --- noodles-bed/src/record.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noodles-bed/src/record.rs b/noodles-bed/src/record.rs index 11fcee1ea..398be165a 100644 --- a/noodles-bed/src/record.rs +++ b/noodles-bed/src/record.rs @@ -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),