[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:
Célian GARCIA 2020-02-05 15:13:46 +01:00 committed by GitHub
parent e37f769035
commit dcc0b70c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}