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

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