Skip to content

Commit 14ead64

Browse files
committed
CurlException
1 parent fe2a066 commit 14ead64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ $curl->setOpt(CURLOPT_RETURNTRANSFER, true);
9595
try {
9696
// try 3 times, if unable throw a RuntimeException
9797
$curl->exec(3, true);
98-
} catch (RuntimeException $e) {
98+
} catch (CurlException $e) {
9999
$message = $e->getMessage();
100100
$curlErrorNumber = $e->getCode();
101101
}

0 commit comments

Comments
 (0)