1
0
Fork 0
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:
Robert Gruendler 2013-04-25 11:26:34 +02:00
parent 09e31bf704
commit 5160dd2f5e
2 changed files with 2 additions and 1 deletions

View file

@ -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()