Skip to content

Commit

Permalink
Show debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Apr 23, 2015
1 parent 719f7e4 commit 7faba86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Exception/FormErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ private function appendErrors(Hal $hal, FormInterface $form, $path)

$currPath = $path;

if ($origin = $error->getOrigin()) {
$origin = $error->getOrigin();

if ($origin instanceof FormInterface) {
$currPath .= '/' . $origin->getConfig()->getName();
}

Expand Down

0 comments on commit 7faba86

Please sign in to comment.