Skip to content

Commit 7e2d418

Browse files
committed
Catch InvalidInputException class
1 parent d10c0a8 commit 7e2d418

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Command/Markdown/Generator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ private function treatFields(InputInterface $input, OutputInterface $output): ar
9696
} catch (EmptyFieldException $e) {
9797
$io->warning($e->getMessage());
9898

99-
return Command::INVALID;;
99+
return Command::INVALID;
100+
} catch (InvalidInputException $e) {
101+
$io->error($e->getMessage());
102+
103+
return Command::FAILURE;
100104
}
101105
}
102106

0 commit comments

Comments
 (0)