Browse Source

Report errors during cURL fetch

pull/2290/head
Matthew Exon 5 years ago
parent
commit
677903b316
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/network.php

+ 3
- 0
include/network.php View File

@ -116,6 +116,9 @@ function z_fetch_url($url,$binary = false, &$redirects = 0, $opts=array()) {
// if it throws any errors.
$s = @curl_exec($ch);
if (curl_errno($ch) !== CURLE_OK) {
logger('fetch_url error fetching '.$url.': '.curl_error($ch), LOGGER_NORMAL);
}
$base = $s;
$curl_info = @curl_getinfo($ch);


Loading…
Cancel
Save