mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Return different error code for SolverProblemsException
To make it easier for external tools to detect SolverProblems and react to them accordingly, this PR introduces a new exit code.
This commit is contained in:
parent
09e31bf704
commit
5160dd2f5e
2 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ class SolverProblemsException extends \RuntimeException
|
|||
$this->problems = $problems;
|
||||
$this->installedMap = $installedMap;
|
||||
|
||||
parent::__construct($this->createMessage());
|
||||
parent::__construct($this->createMessage(), 2);
|
||||
}
|
||||
|
||||
protected function createMessage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue