Compare commits

...

2 Commits

Author SHA1 Message Date
Grimstack 4b0405d4ce
Merge pull request #10 from edent/patch-1
Better error handling
2023-05-30 20:32:26 +02:00
Terence Eden 794ddd0267
Better error handling
Fixes #9
2023-05-09 09:59:05 +01:00
1 changed files with 1 additions and 1 deletions

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);