1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

#1977 - Catch error with e_marketplace

This commit is contained in:
Cameron
2016-10-31 16:15:49 -07:00
parent a44f218752
commit 7041f9b6a8
2 changed files with 16 additions and 2 deletions

View File

@@ -503,7 +503,18 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract
'connection_timeout' => 60,
);
$this->client = new SoapClient($this->serviceUrl, $options);
try
{
$this->client = new SoapClient($this->serviceUrl, $options);
}
catch (Exception $e)
{
e107::getMessage()->addError("Unable to connect. Please check firewall and/or internet connection.");
e107::getMessage()->addDebug($e->getMessage());
}
if(function_exists('xdebug_disable'))
{