We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772e4f1 commit c4409a7Copy full SHA for c4409a7
src/stats.php
@@ -168,6 +168,10 @@ function fetchGraphQL(string $query): stdClass
168
if ($obj && $obj->message) {
169
throw new AssertionError("Error: $obj->message \n<!-- $response -->", 401);
170
}
171
+ // Handle curl errors
172
+ if (curl_errno($ch)) {
173
+ throw new AssertionError("cURL error: " . curl_error($ch) . "\n<!-- $response -->", 500);
174
+ }
175
throw new AssertionError("An error occurred when getting a response from GitHub.\n<!-- $response -->", 502);
176
177
return $obj;
0 commit comments