Skip to content

Commit

Permalink
Fix usage on symfony 2.x, fixes #10022
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 28, 2021
1 parent bbe3769 commit 2fb5323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Console/Application.php
Expand Up @@ -419,7 +419,7 @@ public function getComposer($required = true, $disablePlugins = null)
} catch (\InvalidArgumentException $e) {
if ($required) {
$this->io->writeError($e->getMessage());
if ($this->areExceptionsCaught()){
if ($this->catchExceptions) {
exit(1);
}
throw $e;
Expand Down

0 comments on commit 2fb5323

Please sign in to comment.