8000 Merge remote branch 'CodeMeme/default-validator-improved-synchronized… · renegare/symfony@6881f01 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6881f01

Browse files
committed
Merge remote branch 'CodeMeme/default-validator-improved-synchronized-error'
* CodeMeme/default-validator-improved-synchronized-error: FormError when not synchronized tells you the form name for easier debugging
2 parents 882a8e3 + c13cdd3 commit 6881f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Validator/DefaultValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DefaultValidator implements FormValidatorInterface
2020
public function validate(FormInterface $form)
2121
{
2222
if (!$form->isSynchronized()) {
23-
$form->addError(new FormError('The value is invalid 4F8A '));
23+
$form->addError(new FormError(sprintf('The value for "%s" is invalid', $form->getName())));
2424
}
2525

2626
if (count($form->getExtraData()) > 0) {

0 commit comments

Comments
 (0)
0