Skip to content

Commit c17e20f

Browse files
committed
Merge pull request php-curl-class#59 from Pezmc/patch-1
Update authentication example to include error reason
2 parents 0481920 + 40acf9c commit c17e20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $curl->setCookie('key', 'value');
4242
$curl->get('http://www.example.com/');
4343

4444
if ($curl->error) {
45-
echo $curl->error_code;
45+
echo "ERROR: " . $curl->error_code . ": " . $curl->error_message;
4646
}
4747
else {
4848
echo $curl->response;

0 commit comments

Comments
 (0)