keep validation failure messages consistent.

they now print the incorrect value passed.
This commit is contained in:
2026-02-10 01:24:55 +00:00
parent 2e1c28c909
commit 942d1b18bd
8 changed files with 9 additions and 9 deletions

View File

@@ -150,7 +150,7 @@ func (cmd *MainEqCmdGroup) Validate() error {
}
if cmd.Band.Band < 1 || cmd.Band.Band > 6 {
return fmt.Errorf("invalid EQ band number: %d. Valid range is 1-6", cmd.Band.Band)
return fmt.Errorf("EQ band number must be between 1 and 6, got %d", cmd.Band.Band)
}
return nil
}