Change wording in root route mute time interval error to align with other error message wording

Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
Ben Ridley 2020-12-16 21:33:37 +11:00
parent 253e28abde
commit bcab6aa8c3
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
return fmt.Errorf("root route must not have any matchers")
}
if len(c.Route.MuteTimeIntervals) > 0 {
return fmt.Errorf("root route cannot have any mute times")
return fmt.Errorf("root route must not have any mute time intervals")
}
// Validate that all receivers used in the routing tree are defined.

View File

@ -347,7 +347,7 @@ route:
`
_, err := Load(in)
expected := "root route cannot have any mute times"
expected := "root route must not have any mute time intervals"
if err == nil {
t.Fatalf("no error returned, expected:\n%q", expected)