Skip to content

Commit

Permalink
onException now throw the exception in kernel.debug env
Browse files Browse the repository at this point in the history
  • Loading branch information
cedriclombardot authored and Thomas Roger committed Oct 13, 2012
1 parent 3487377 commit e8ac274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/templates/CommonAdmin/EditAction/update.php.twig
Expand Up @@ -50,6 +50,9 @@
*/
public function onException(\Exception $exception, \Symfony\Component\Form\Form $form, \{{ model }} ${{ builder.ModelClass }})
{
if ($this->get('kernel.debug')) {
throw $exception;
}
}

/**
Expand Down
3 changes: 3 additions & 0 deletions Resources/templates/CommonAdmin/NewAction/create.php.twig
Expand Up @@ -45,6 +45,9 @@
*/
public function onException(\Exception $exception, \Symfony\Component\Form\Form $form, \{{ model }} ${{ builder.ModelClass }})
{
if ($this->get('kernel.debug')) {
throw $exception;
}
}

/**
Expand Down

0 comments on commit e8ac274

Please sign in to comment.