X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHttpClient.php;h=f9e115686c45d5c4e086015fe7fda04cc1151f3b;hb=694ccbf41adc31bce4d056fcc46930ba9c2e15e5;hp=dfa92e6dcc693f2e4eff7f960cc72941eabad844;hpb=6c6872a8ee5acec3dba231fe2231c610241302eb;p=civicrm-core.git diff --git a/CRM/Utils/HttpClient.php b/CRM/Utils/HttpClient.php index dfa92e6dcc..f9e115686c 100644 --- a/CRM/Utils/HttpClient.php +++ b/CRM/Utils/HttpClient.php @@ -1,9 +1,9 @@ Is the location writable?', array(1 => $localFile)), ts('Write Error'), 'error'); return self::STATUS_WRITE_ERROR; } curl_setopt($ch, CURLOPT_FILE, $fp); curl_exec($ch); if (curl_errno($ch)) { - // Fixme: throw error instead of setting message - CRM_Core_Session::setStatus(ts('Unable to download extension from %1. Error Message: %2', - array(1 => $remoteFile, 2 => curl_error($ch))), ts('Extension download error'), 'error'); return self::STATUS_DL_ERROR; } else {