public function error()
    {
        $this->errors = [
            'code'    => curl_errno($this->curl),
            'message' => curl_error($this->curl)
        ];

        return $this->error();
    }
public function error()
    {
        $this->errors = [
            'code'    => curl_errno($this->curl),
            'message' => curl_error($this->curl)
        ];

        return $this->error();
    }
public function error ( ) { $ this -> errors = [ 'code' => curl_errno ( $ this -> curl ) , 'message' => curl_error ( $ this -> curl ) ] ; return $ this -> error ( ) ; }
Get cURL errors

@return mixed
Get cURL errors