Improved connection error reporting

This commit is contained in:
rr- 2015-09-09 22:32:18 +02:00
parent 180252cc64
commit a31d5849fc

View file

@ -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)