Skip to content

Commit f626e96

Browse files
committed
Merge pull request #58 from gggeek/issue_57
Fix: make sure http errors from the requested resource are noticed
2 parents a57b2bc + 3b11d17 commit f626e96

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)