diff --git a/dist-persist/wbstack/src/Info/GlobalSet.php b/dist-persist/wbstack/src/Info/GlobalSet.php index cd749d580..2cf20ff92 100644 --- a/dist-persist/wbstack/src/Info/GlobalSet.php +++ b/dist-persist/wbstack/src/Info/GlobalSet.php @@ -133,6 +133,12 @@ private static function getInfoFromApi( $requestDomain ) { curl_setopt( $client, CURLOPT_USERAGENT, "WBStack - MediaWiki - WBStackInfo::getInfoFromApi" ); $response = curl_exec($client); + if ($response === false) { + throw new GlobalSetException( + "Unexpected error getting wiki info from api: ".curl_error($client), + 502, + ); + } $responseCode = intval(curl_getinfo($client, CURLINFO_RESPONSE_CODE)); if ($responseCode > 299) {