mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Add hint in solver exceptions as to what may be wrong
This commit is contained in:
parent
a5f0872152
commit
6573fd3f77
2 changed files with 9 additions and 1 deletions
|
@ -35,6 +35,10 @@ class SolverProblemsException extends \RuntimeException
|
|||
$text .= " Problem ".($i+1).$problem->getPrettyString($this->installedMap)."\n";
|
||||
}
|
||||
|
||||
if (strpos($text, 'could not be found') || strpos($text, 'no matching package found')) {
|
||||
$text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.\n";
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue