diff --git a/SoapClient.php b/SoapClient.php index 0fa3c7d..b31e4ac 100644 --- a/SoapClient.php +++ b/SoapClient.php @@ -374,10 +374,10 @@ protected function loadWsdl($wsdl, array $options) $wsdlDownloader = new WsdlDownloader($this->curl, $resolveRemoteIncludes, $wsdlCache); try { $cacheFileName = $wsdlDownloader->download($wsdl); - } catch (\RuntimeException $e) { + } catch (\ErrorException $e) { throw new \SoapFault('WSDL', "SOAP-ERROR: Parsing WSDL: Couldn't load from '" . $wsdl . "' : failed to load external entity \"" . $wsdl . "\""); } return $cacheFileName; } -} \ No newline at end of file +}