Skip to content

Commit

Permalink
Update lib/Command/Announce.php
Browse files Browse the repository at this point in the history
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com>
  • Loading branch information
mwinkens and nickvergessen authored Jul 29, 2024
1 parent 67675db commit f85a5c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Command/Announce.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int

// validation
if ($scheduleTime && $deleteTime && $deleteTime < $scheduleTime) {
throw new \InvalidArgumentException("Publishing time is after deletion time");
$output->writeln('Publishing time is after deletion time');
return 2;
}

$plainMessage = $this->plainifyMessage($message);
Expand Down

0 comments on commit f85a5c2

Please sign in to comment.