Skip to content

Commit

Permalink
Permit show delete message.
Browse files Browse the repository at this point in the history
  • Loading branch information
WBerredo committed Dec 1, 2014
1 parent 45fddae commit e99058a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
try {
return $this->container->get('{{ bundle|replace({'Bundle': ''})|lower}}.{{ entity|lower }}.handler')->delete(${{ entity|lower }});
} catch (\Exception $exception) {
return $exception;
throw new \RuntimeException("Exclusion not allowed");
}
{% endblock method_body %}
{% block method_return '' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

return null;
} catch (\Exception $e) {
throw new \RuntimeException("Exclusion not allowed");
throw new \RuntimeException();
}
{% endblock method_body %}
}
Expand Down

0 comments on commit e99058a

Please sign in to comment.