1
0
mirror of https://github.com/Eleirbag89/MastodonBotPHP synced 2024-12-30 14:57:15 +01:00

Merge pull request #10 from edent/patch-1

Better error handling
This commit is contained in:
Grimstack 2023-05-30 20:32:26 +02:00 committed by GitHub
commit 4b0405d4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@
$reply = curl_exec($ch);
if (!$reply) {
return json_encode(['ok'=>false, 'curl_error_code' => curl_errno($ch_status), 'curl_error' => curl_error(ch_status)]);
return json_encode(['ok'=>false, 'curl_error_code' => curl_errno($ch), 'curl_error' => curl_error($ch)]);
}
curl_close($ch);