Page MenuHomeDevCentral

D315.diff
No OneTemporary

D315.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
Mon, Nov 18, 02:28 (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246717
Default Alt Text
D315.diff (465 B)

Event Timeline