function onFail($error)
    {
        $msg = "Curl error ($error[errorCode]). $error[errorMsg], url=" . $error['info']['url'];
        if ($this->_curl->onInfo == array(
            $this,
            'onInfo'
        )) {
            $this->onInfo($msg . "\n");
        } else {
            echo "\n$msg\n\n";
        }
    }
function onFail($error)
    {
        $msg = "Curl error ($error[errorCode]). $error[errorMsg], url=" . $error['info']['url'];
        if ($this->_curl->onInfo == array(
            $this,
            'onInfo'
        )) {
            $this->onInfo($msg . "\n");
        } else {
            echo "\n$msg\n\n";
        }
    }
function onFail ( $ error ) { $ msg = "Curl error ($error[errorCode]). $error[errorMsg], url=" . $ error [ 'info' ] [ 'url' ] ; if ( $ this -> _curl -> onInfo == array ( $ this , 'onInfo' ) ) { $ this -> onInfo ( $ msg . "\n" ) ; } else { echo "\n$msg\n\n" ; } }
Output curl error information

@param array $error
Output curl error information