Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Feb 21, 2025
1 parent d6d9ec3 commit 66680b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Console/LockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
throw new LockException('Provided an invalid lock goal, must be either "generate" or "verify"');
}
} catch (BreakingChangesException $e) {
$output->writeln('Error: ' . $e->getMessage());
$output->writeln('The API contains the following breaking changes, please revert these changes.');
$output->writeln('To keep these changes you need to update the API lock file.');

foreach ($e->getChanges() as $change) {
$output->writeln('* ' . $change);
}

return self::FAILURE;
} catch (LockException $e) {
Expand Down

0 comments on commit 66680b0

Please sign in to comment.