Page MenuHomeDevCentral

D315.id743.diff
No OneTemporary

D315.id743.diff

diff --git a/app/Phabricator/PhabricatorAPI.php b/app/Phabricator/PhabricatorAPI.php
--- a/app/Phabricator/PhabricatorAPI.php
+++ b/app/Phabricator/PhabricatorAPI.php
@@ -134,6 +134,11 @@
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
curl_close($ch);
+
+ if ($result === false) {
+ throw new \RuntimeException("Can't reach Phabricator API endpoint: $url");
+ }
+
return $result;
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 17:24 (14 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246717
Default Alt Text
D315.id743.diff (465 B)

Event Timeline