Skip to content

Commit 09807e2

Browse files
authored
Fix: Improve readability of schedule error messages (#93)
1 parent 5d9091c commit 09807e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/internal/worker/handlers/invhandlers/schedsingle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func openapiToGrpcSingleSchedSeconds(body *api.SingleSchedule, sched *schedv1.Si
472472
if body.EndSeconds != nil && body.StartSeconds != 0 {
473473
if sched.EndSeconds < sched.StartSeconds {
474474
err := errors.Errorfc(codes.InvalidArgument,
475-
"end_seconds must be equal or bigger than start_seconds")
475+
"The schedule end time must be greater than the start time")
476476
log.InfraErr(err).Msg("error in specified values of end_seconds and start_seconds")
477477
return err
478478
}

0 commit comments

Comments
 (0)