Improved connection error reporting
This commit is contained in:
parent
180252cc64
commit
a31d5849fc
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ class NetworkingService
|
|||
{
|
||||
$srcHandle = fopen($url, 'rb');
|
||||
}
|
||||
catch (Exception $e)
|
||||
catch (\Exception $e)
|
||||
{
|
||||
throw new \Exception('Cannot open URL for reading: ' . $e->getMessage());
|
||||
throw new \Exception('Cannot open URL "' . $url . '" for reading: ' . $e->getMessage());
|
||||
}
|
||||
|
||||
if (!$srcHandle)
|
||||
|
|
Loading…
Reference in a new issue