mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-11 16:29:30 +00:00
[Minor][one line change] Fix an error message about start and end time validation. EOM (#2173)
* Fix an error message about start and end time validation Signed-off-by: Célian Garcia <celian.garcia@amadeus.com> * Modified start and end time validation message to be affirmative Signed-off-by: Célian Garcia <celian.garcia@amadeus.com>
This commit is contained in:
parent
e37f769035
commit
dcc0b70c7d
@ -723,7 +723,7 @@ func (api *API) postSilencesHandler(params silence_ops.PostSilencesParams) middl
|
||||
}
|
||||
|
||||
if sil.StartsAt.After(sil.EndsAt) || sil.StartsAt.Equal(sil.EndsAt) {
|
||||
msg := "failed to create silence: start time must be equal or after end time"
|
||||
msg := "failed to create silence: start time must be greater than end time"
|
||||
level.Error(api.logger).Log("msg", msg, "err", err)
|
||||
return silence_ops.NewPostSilencesBadRequest().WithPayload(msg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user