Skip to content

Commit

Permalink
fix(derive/command/readlen): proper error message
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Dec 4, 2023
1 parent 0c01978 commit 6bb2c2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/derive/command/readlen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub fn cutoff_in_range(cutoff_raw: &str) -> Result<f64, String> {

match (0.0..=1.0).contains(&cutoff) {
true => Ok(cutoff),
false => Err(String::from("Error rate must be between 0.0 and 1.0")),
false => Err(String::from(
"Majority Vote Cutoff must be between 0.0 and 1.0",
)),
}
}

Expand Down

0 comments on commit 6bb2c2a

Please sign in to comment.