Skip to content

Commit

Permalink
Include cURL error number in error message (will help troubleshoot SS…
Browse files Browse the repository at this point in the history
…L cert errors)
  • Loading branch information
ginatrapani committed Dec 31, 2012
1 parent 5f8f10f commit 4ca5606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/_lib/class.URLProcessor.php
Expand Up @@ -119,7 +119,7 @@ public static function getFinalURL($url, $verify_ssl_cert=true) {
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0");
$response = curl_exec($ch);
if ($response === false) {
throw new Exception ("cURL error fetching ".$url." - ".curl_error($ch));
throw new Exception ("cURL error ".curl_errno($ch) ." fetching ".$url." - ".curl_error($ch));
}
curl_close($ch);

Expand Down

0 comments on commit 4ca5606

Please sign in to comment.