Skip to content

Commit

Permalink
fix a bug in the throw exception statement
Browse files Browse the repository at this point in the history
  • Loading branch information
madcoda committed Apr 8, 2015
1 parent f359ab8 commit 673f758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Madcoda/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public function api_get($url, $params)
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
$tuData = curl_exec($tuCurl);
if (curl_errno($tuCurl)) {
throw new \Exception('Curl Error : ' . curl_error($tuCurl),curl_error($tuCurl));
throw new \Exception('Curl Error : ' . curl_error($tuCurl));
}
return $tuData;
}
Expand Down

0 comments on commit 673f758

Please sign in to comment.