Skip to content

Commit 673f758

Browse files
committed
fix a bug in the throw exception statement
1 parent f359ab8 commit 673f758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Madcoda/Youtube.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function api_get($url, $params)
472472
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
473473
$tuData = curl_exec($tuCurl);
474474
if (curl_errno($tuCurl)) {
475-
throw new \Exception('Curl Error : ' . curl_error($tuCurl),curl_error($tuCurl));
475+
throw new \Exception('Curl Error : ' . curl_error($tuCurl));
476476
}
477477
return $tuData;
478478
}

0 commit comments

Comments
 (0)