Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4060916
D315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
465 B
Referenced Files
None
Subscribers
None
D315.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 08:52 (3 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2380211
Default Alt Text
D315.diff (465 B)
Attached To
Mode
D315: Throw RuntimeException when Phabricator API call fails.
Attached
Detach File
Event Timeline
Log In to Comment