Merge pull request #10147 from KarinG/CRM-20393-dmaster
[civicrm-core.git] / CRM / Utils / HttpClient.php
index bb042668cedc2aa13c46f8b9a6f8757b8ef31276..b0900f28a5ee09bf7f2b728219417fbbd1a84596 100644 (file)
@@ -92,17 +92,12 @@ class CRM_Utils_HttpClient {
 
     $fp = @fopen($localFile, "w");
     if (!$fp) {
-      // Fixme: throw error instead of setting message
-      CRM_Core_Session::setStatus(ts('Unable to write to %1.<br />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 {