Skip to content
Browse files

Reverting

Revert "Adding custom exception message for error flash"

This reverts commit 04bc4ca.
  • Loading branch information...
1 parent 04bc4ca commit 74b30c272a0378a4caf89b5eff62b5de6a9cc456 Sébastien Ferrandez committed Apr 18, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 Controller/CRUDController.php
View
2 Controller/CRUDController.php
@@ -209,8 +209,6 @@ public function deleteAction($id)
$this->get('session')->setFlash('sonata_flash_success', 'flash_delete_success');
} catch ( ModelManagerException $e ) {
$this->get('session')->setFlash('sonata_flash_error', 'flash_delete_error');
- } catch ( \Exception $e ) {
- $this->get('session')->setFlash('sonata_flash_error', $e->getMessage());
}
return new RedirectResponse($this->admin->generateUrl('list'));

0 comments on commit 74b30c2

Please sign in to comment.
Something went wrong with that request. Please try again.