customized failed rules behaviour
This commit is contained in:
1 parent
0c5f828b3b
commit
7421e56670
2 files changed
+5
-1
No files matched your search
@@ -163,7 +163,7 @@ public final class ParsedRule<T> implements Comparable<ParsedRule> {
|
||||
{
|
||||
if (source != null)
|
||||
{
|
||||
Messenger.m(source, "r Wrong value for " + name + ": " + stringValue);
|
||||
validator.notifyFailure(source, this, stringValue);
|
||||
if (validator.description() != null)
|
||||
Messenger.m(source, "r " + validator.description());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user