summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-09 10:56:33 -0800
committerBrion Vibber <brion@pobox.com>2010-03-09 10:56:33 -0800
commit58192ad68758437a37d8af19d6676d35699ed070 (patch)
treec0b2054aaf769748fdd7ce7392cb122aaaa7470e /plugins/OStatus/lib
parent3f1a9443d9fc8c6f519913b6014eec814248eea4 (diff)
OStatus: fix exception thrown on HTTP error during feed discovery
Diffstat (limited to 'plugins/OStatus/lib')
-rw-r--r--plugins/OStatus/lib/feeddiscovery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/feeddiscovery.php b/plugins/OStatus/lib/feeddiscovery.php
index 7afb71bdc..ff76b229e 100644
--- a/plugins/OStatus/lib/feeddiscovery.php
+++ b/plugins/OStatus/lib/feeddiscovery.php
@@ -129,7 +129,7 @@ class FeedDiscovery
function initFromResponse($response)
{
if (!$response->isOk()) {
- throw new FeedSubBadResponseException($response->getCode());
+ throw new FeedSubBadResponseException($response->getStatus());
}
$sourceurl = $response->getUrl();