diff options
Diffstat (limited to 'lib/Command/ExploreGenerator.php')
-rw-r--r-- | lib/Command/ExploreGenerator.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Command/ExploreGenerator.php b/lib/Command/ExploreGenerator.php index 2e1b38e91..65c206c5e 100644 --- a/lib/Command/ExploreGenerator.php +++ b/lib/Command/ExploreGenerator.php @@ -64,7 +64,7 @@ class ExploreGenerator extends Command ->addOption('votes', null, InputOption::VALUE_OPTIONAL, 'Votes for the feed, defaults to 100'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $url = $input->getArgument('feed'); $votes = $input->getOption('votes'); @@ -85,6 +85,7 @@ class ExploreGenerator extends Command ]; $output->writeln(json_encode($result, JSON_PRETTY_PRINT)); + return 0; } catch (\Throwable $ex) { $output->writeln('<error>Failed to fetch feed info:</error>'); $output->writeln($ex->getMessage()); |