From 5f23bbdddffcd36e8355e19a38629eb263d98abe Mon Sep 17 00:00:00 2001 From: lasith-kg Date: Mon, 25 Dec 2023 07:07:38 +0000 Subject: [PATCH] foo --- internal/config/validator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/config/validator.go b/internal/config/validator.go index b8913ed..6f48772 100644 --- a/internal/config/validator.go +++ b/internal/config/validator.go @@ -172,14 +172,14 @@ func NewResizeThresholdValidator() *ResizeThresholdValidator { func (rtv *ResizeThresholdValidator) Validate(c *Config) error { if c.Defaults.ResizeThreshold < 0 || c.Defaults.ResizeThreshold > 100 { - return fmt.Errorf("🔴 '%g' (default) must be a floating point between (inclusive) 0 and 100", c.Defaults.ResizeThreshold) + return fmt.Errorf("🔴 '%g' (default) must be a floating point between 0 and 100 (inclusive)", c.Defaults.ResizeThreshold) } if c.overrides.ResizeThreshold < 0 || c.overrides.ResizeThreshold > 100 { - return fmt.Errorf("🔴 '%g' (-resize-threshold) must be a floating point between (inclusive) 0 and 100", c.overrides.ResizeThreshold) + return fmt.Errorf("🔴 '%g' (-resize-threshold) must be a floating point between 0 and 100 (inclusive)", c.overrides.ResizeThreshold) } for name, device := range c.Devices { if device.ResizeThreshold < 0 || device.ResizeThreshold > 100 { - return fmt.Errorf("🔴 %s: '%g' must be a floating point between (inclusive) 0 and 100", name, device.ResizeThreshold) + return fmt.Errorf("🔴 %s: '%g' must be a floating point between 0 and 100 (inclusive)", name, device.ResizeThreshold) } } return nil