Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Aug 2, 2018
1 parent 569b7ed commit 63c1c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ebizmarts/mailchimp-lib",
"type": "library",
"version": "3.0.24",
"version": "3.0.25",
"description": "API client library for the MailChimp",
"keywords": ["email", "api","mailchimp"],
"homepage": "https://github.com/ebizmarts/mailchimp-lib",
Expand Down
2 changes: 1 addition & 1 deletion src/Mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function call($url,$params,$method=Mailchimp::GET)

$info = curl_getinfo($ch);
if(curl_error($ch)) {
throw new Mailchimp_HttpError("API call to $url failed: " . curl_error($ch));
throw new Mailchimp_HttpError("API call to $url failed: " . curl_error($ch), $method, $params);
}
$result = json_decode($response_body, true);

Expand Down
2 changes: 1 addition & 1 deletion src/Mailchimp/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Mailchimp_Error extends Exception
*/
protected $params;

public function __construct($url,$method,$params,$title,$detail,$errors)
public function __construct($url,$method='',$params='',$title='',$detail='',$errors=null)
{
$titleComplete = $title . " for Api Call: " . $url;
parent::__construct($titleComplete . " - " . $detail);
Expand Down

0 comments on commit 63c1c81

Please sign in to comment.