Skip to content

Commit

Permalink
Update class.baseclient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jprado committed Jun 4, 2013
1 parent aa56fad commit 73a842e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions class.baseclient.php
Expand Up @@ -188,7 +188,7 @@ protected function execute_get_request($url) {
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ( $errno > 0) {
throw new HubSpot_Exception('cURL error: ' + $error);
throw new HubSpot_Exception('cURL error: ' . $error);
} else {
return $output;
}
Expand Down Expand Up @@ -221,7 +221,7 @@ protected function execute_post_request($url, $body, $formenc=FALSE) { //new
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($errno > 0) {
throw new HubSpot_Exception ('cURL error: ' + $error);
throw new HubSpot_Exception ('cURL error: ' . $error);
} else {
return $output;
}
Expand Down Expand Up @@ -254,7 +254,7 @@ protected function execute_JSON_post_request($url, $body) { //new
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($errno > 0) {
throw new HubSpot_Exception ('cURL error: ' + $error);
throw new HubSpot_Exception ('cURL error: ' . $error);
} else {
return $output;
}
Expand Down Expand Up @@ -287,7 +287,7 @@ protected function execute_xml_post_request($url, $body) {
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($errno > 0) {
throw new HubSpot_Exception ('cURL error: ' + $error);
throw new HubSpot_Exception ('cURL error: ' . $error);
} else {
return $output;
}
Expand Down Expand Up @@ -319,7 +319,7 @@ protected function execute_put_request($url, $body) {
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($apierr > 0) {
throw new HubSpot_Exception('cURL error: ' + $errmsg);
throw new HubSpot_Exception('cURL error: ' . $errmsg);
} else {
return $result;
}
Expand Down Expand Up @@ -351,7 +351,7 @@ protected function execute_xml_put_request($url, $body) {
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($apierr > 0) {
throw new HubSpot_Exception('cURL error: ' + $errmsg);
throw new HubSpot_Exception('cURL error: ' . $errmsg);
} else {
return $result;
}
Expand Down Expand Up @@ -383,7 +383,7 @@ protected function execute_delete_request($url, $body) {
$this->setLastStatusFromCurl($ch);
curl_close($ch);
if ($apierr > 0) {
throw new HubSpot_Exception('cURL error: ' + $errmsg);
throw new HubSpot_Exception('cURL error: ' . $errmsg);
} else {
return $result;
}
Expand Down

0 comments on commit 73a842e

Please sign in to comment.