Skip to content

Commit 956ee3d

Browse files
committed
Include error code in output on error
1 parent dfc36bb commit 956ee3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/upload_file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
));
1818

1919
if ($curl->error) {
20-
echo 'Error: ' . $curl->errorMessage . "\n";
20+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
2121
} else {
2222
echo 'Success' . "\n";
2323
}

0 commit comments

Comments
 (0)