mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-03 12:22:11 +00:00
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:
parent
253e28abde
commit
bcab6aa8c3
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user