Skip to content

Commit d7c6e3c

Browse files
author
Alvaro Muñoz
authored
Update CronValidator.java
1 parent 2cf9697 commit d7c6e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/cronutils/validation/CronValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public boolean isValid(String value, ConstraintValidatorContext context) {
3030
return true;
3131
} catch (IllegalArgumentException e) {
3232
context.disableDefaultConstraintViolation();
33-
context.buildConstraintViolationWithTemplate(e.getMessage()).addConstraintViolation();
33+
context.buildConstraintViolationWithTemplate("Error parsing the Cron expression").addConstraintViolation();
3434
return false;
3535
}
3636
}

0 commit comments

Comments
 (0)