[Controller] Prevented instanciation of a new SoapFault if the catched exception is already a SoapFault.

This commit is contained in:
Pierre-Yves LEBECQ 2013-07-17 11:20:59 +02:00
parent 5dc1c4f917
commit faa1a84c0b
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class SoapWebServiceController extends ContainerAware
} catch (\Exception $e) {
$this->soapResponse = new Response(null, 500);
if ($this->container->getParameter('kernel.debug')) {
if ($e instanceof \SoapFault || $this->container->getParameter('kernel.debug')) {
throw $e;
}