This commit is contained in:
thosakwe 2016-12-27 11:50:16 -05:00
parent 96a6460553
commit 2b6e15c7cd

View file

@ -179,7 +179,7 @@ class Validator extends Matcher {
var msg = customErrorMessages[key];
if (msg is String)
return msg.replaceAll('{{value}}', value);
return msg.replaceAll('{{value}}', value.toString());
else if (msg is CustomErrorMessageFunction) {
return msg(value);
}