[Controller] Prevented instanciation of a new SoapFault if the catched exception is already a SoapFault.
This commit is contained in:
parent
5dc1c4f917
commit
faa1a84c0b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user