More Exceptions for FeedSub doSubscribe and related functions
Now also garbageCollect will now throw exceptions of failures of all kinds and only reply true/false on entirely successful runs of sub/unsub.
This commit is contained in:
@@ -77,11 +77,7 @@ class AddMirrorAction extends BaseMirrorAction
|
||||
|
||||
protected function saveMirror()
|
||||
{
|
||||
if ($this->oprofile->subscribe()) {
|
||||
SubMirror::saveMirror($this->user, $this->profile);
|
||||
} else {
|
||||
// TRANS: Exception thrown when a subscribing to a feed fails.
|
||||
$this->serverError(_m('Could not subscribe to feed.'));
|
||||
}
|
||||
$this->oprofile->subscribe();
|
||||
SubMirror::saveMirror($this->user, $this->profile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user