diff --git a/internal/flag/timedurationvalue.go b/internal/flag/timedurationvalue.go index 010a8d2..6524372 100644 --- a/internal/flag/timedurationvalue.go +++ b/internal/flag/timedurationvalue.go @@ -37,22 +37,22 @@ func (v *TimeDurationValue) Set(value string) error { case strings.Contains(matches[ind], "day"): days, err = parseInt(matches[ind]) if err != nil { - return fmt.Errorf("unable to parse the integer from %s: %w", matches[ind], err) + return fmt.Errorf("unable to parse the number of days from %s: %w", matches[ind], err) } case strings.Contains(matches[ind], "hour"): hours, err = parseInt(matches[ind]) if err != nil { - return fmt.Errorf("unable to parse the integer from %s: %w", matches[ind], err) + return fmt.Errorf("unable to parse the number of hours from %s: %w", matches[ind], err) } case strings.Contains(matches[ind], "minute"): minutes, err = parseInt(matches[ind]) if err != nil { - return fmt.Errorf("unable to parse the integer from %s: %w", matches[ind], err) + return fmt.Errorf("unable to parse the number of minutes from %s: %w", matches[ind], err) } case strings.Contains(matches[ind], "second"): seconds, err = parseInt(matches[ind]) if err != nil { - return fmt.Errorf("unable to parse the integer from %s: %w", matches[ind], err) + return fmt.Errorf("unable to parse the number of seconds from %s: %w", matches[ind], err) } } }