Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3749718
D315.id743.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.id743.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
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)
Attached To
Mode
D315: Throw RuntimeException when Phabricator API call fails.
Attached
Detach File
Event Timeline
Log In to Comment