We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f91560 + d7c6e3c commit d670750Copy full SHA for d670750
1 file changed
src/main/java/com/cronutils/validation/CronValidator.java
@@ -30,7 +30,7 @@ public boolean isValid(String value, ConstraintValidatorContext context) {
30
return true;
31
} catch (IllegalArgumentException e) {
32
context.disableDefaultConstraintViolation();
33
- context.buildConstraintViolationWithTemplate(e.getMessage()).addConstraintViolation();
+ context.buildConstraintViolationWithTemplate("Error parsing the Cron expression").addConstraintViolation();
34
return false;
35
}
36
0 commit comments