{"action":"opened","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/21107","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/21107/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/21107/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/21107/events","html_url":"https://github.com/symfony/symfony/issues/21107","id":198149819,"number":21107,"title":"[DebugToolBar] Manually added FormError are not detected","user":{"login":"Vinorcola","id":2178680,"avatar_url":"https://avatars.githubusercontent.com/u/2178680?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinorcola","html_url":"https://github.com/Vinorcola","followers_url":"https://api.github.com/users/Vinorcola/followers","following_url":"https://api.github.com/users/Vinorcola/following{/other_user}","gists_url":"https://api.github.com/users/Vinorcola/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinorcola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinorcola/subscriptions","organizations_url":"https://api.github.com/users/Vinorcola/orgs","repos_url":"https://api.github.com/users/Vinorcola/repos","events_url":"https://api.github.com/users/Vinorcola/events{/privacy}","received_events_url":"https://api.github.com/users/Vinorcola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-30T13:52:28Z","updated_at":"2016-12-30T13:52:28Z","closed_at":null,"body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | yes\r\n| Feature request? | no\r\n| BC Break report? | no\r\n| RFC?             | no\r\n| Symfony version  | 3.2.1\r\n\r\nThe Debug Tool Bar doesn't seems to catch the FormError added manually to the form after validation:\r\n\r\n```php\r\nif ($form->isValid()) {\r\n    try {\r\n        $model->doStuf();\r\n    } catch (AnyKindOfException $e) {\r\n        $form->get('field')->addError(new FormError('You can\\'t do that!'));\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"Vinorcola"}}