dont print reschedule policy in error message

This commit is contained in:
Preetha Appan 2018-04-11 17:07:14 -05:00
parent fa90f036c6
commit 9f84e17bfd
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 1 additions and 1 deletions

View File

@ -3303,7 +3303,7 @@ func (tg *TaskGroup) Validate(j *Job) error {
if j.Type == JobTypeSystem {
if tg.ReschedulePolicy != nil {
mErr.Errors = append(mErr.Errors, fmt.Errorf("System jobs should not have a reschedule policy but got %+v", tg.ReschedulePolicy))
mErr.Errors = append(mErr.Errors, fmt.Errorf("System jobs should not have a reschedule policy"))
}
} else {
if tg.ReschedulePolicy != nil {