curl_error

Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Return a string containing the last error for the current session
curl_error(CurlHandle $handle): string
            $progress curl_getinfo($curlHandle);

            
$job $this->jobs[$i];

            unset(
$this->jobs[$i]);

            
$error curl_error($curlHandle);

            
$errno curl_errno($curlHandle);

            
curl_multi_remove_handle($this->multiHandle$curlHandle);

            
curl_close($curlHandle);
        curl_exec($this->curlHandleNext);

        if (
curl_errno($this->curlHandleNext) > 0) {

            
$message curl_error($this->curlHandleNext);

            
$this->closeCurlHandleNext();

            throw new 
Exception('Failed to fetch next Lambda invocation: ' $message);

        }
        ]);

        
curl_exec($this->curlHandleResult);

        if (
curl_errno($this->curlHandleResult) > 0) {

            
$errorMessage curl_error($this->curlHandleResult);

            
$this->closeCurlHandleResult();

            throw new 
Exception('Error while calling the Lambda runtime API: ' $errorMessage);

        }