summaryrefslogtreecommitdiffstats
path: root/lib/Command/Updater/UpdateFeed.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/Updater/UpdateFeed.php')
-rw-r--r--lib/Command/Updater/UpdateFeed.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Command/Updater/UpdateFeed.php b/lib/Command/Updater/UpdateFeed.php
index 5078e92a4..71e88a15f 100644
--- a/lib/Command/Updater/UpdateFeed.php
+++ b/lib/Command/Updater/UpdateFeed.php
@@ -11,16 +11,12 @@
namespace OCA\News\Command\Updater;
-use Exception;
-
use OCA\News\Service\FeedServiceV2;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
-use OCA\News\Service\FeedService;
-
class UpdateFeed extends Command
{
/**
@@ -57,12 +53,13 @@ class UpdateFeed extends Command
try {
$feed = $this->feedService->findForUser($userId, $feedId);
$this->feedService->fetch($feed);
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$output->writeln(
'<error>Could not update feed with id ' . $feedId .
' and user ' . $userId . ': ' . $e->getMessage() .
'</error> '
);
+ return 1;
}
return 0;