index: don't exit

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/602/head
Varun Patil 2023-04-20 14:11:39 -07:00
parent f9559ab990
commit 31e753c176
1 changed files with 1 additions and 3 deletions

View File

@ -143,9 +143,7 @@ class Index extends Command
if ($this->input->isInteractive()) { if ($this->input->isInteractive()) {
$this->output->write('Are you sure you want to clear the existing index? (y/N): '); $this->output->write('Are you sure you want to clear the existing index? (y/N): ');
if ('y' !== trim(fgets(STDIN))) { if ('y' !== trim(fgets(STDIN))) {
$this->output->writeln('Aborting'); throw new \Exception('Aborting');
exit;
} }
} }