Skip to content

Commit 3b11d17

Browse files
committed
Fix: make sure http errors from the requested resource are caught and exceptions thrown
1 parent a57b2bc commit 3b11d17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/WebDriver/Service/CurlService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions
8181
}
8282

8383
curl_setopt($curl, CURLOPT_HTTPHEADER, $customHeaders);
84+
curl_setopt($curl, CURLOPT_FAILONERROR, true);
8485

8586
$rawResult = trim(curl_exec($curl));
8687
$info = curl_getinfo($curl);

0 commit comments

Comments
 (0)