public function CurlHandle::getError

Get the last error that occurred on the cURL handle

Return value

string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlHandle.php, line 286

Class

CurlHandle
Immutable wrapper for a cURL handle

Namespace

Guzzle\Http\Curl

Code

public function getError() {
  return $this
    ->isAvailable() ? curl_error($this->handle) : '';
}