OStatus: fix exception thrown on HTTP error during feed discovery

This commit is contained in:
Brion Vibber 2010-03-09 10:56:33 -08:00
parent 3f1a9443d9
commit 58192ad687
1 changed files with 1 additions and 1 deletions

View File

@ -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();