diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2020-10-29 08:21:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 08:21:01 +0100 |
commit | cfc75fb1d38318245abfc341939ef80cab0b0683 (patch) | |
tree | 03e575779248c7a2b2e75641f7225ceb6bdbfc76 /lib/Command/Updater/UpdateFeed.php | |
parent | ec6930da8226b9879eb2d7289af739aa96de43ef (diff) | |
parent | c5daf112bed9d958f70073fd1cb199beff322334 (diff) |
Merge branch 'master' into fix/dont_overload_getid
Diffstat (limited to 'lib/Command/Updater/UpdateFeed.php')
-rw-r--r-- | lib/Command/Updater/UpdateFeed.php | 7 |
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; |