Browse Source

Less confusing error message

Jordi Boggiano 13 years ago
parent
commit
9b2694351b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Command/InstallCommand.php

+ 1 - 1
src/Composer/Command/InstallCommand.php

@@ -151,7 +151,7 @@ EOT
                 }
                 }
 
 
                 if ($pool->whatProvides($job['packageName'])) {
                 if ($pool->whatProvides($job['packageName'])) {
-                    throw new \UnexpectedValueException('Your version constraint for package '.$job['packageName'].' does not match any existing version, if it only has -dev versions make sure you include -dev in your version constraint.');
+                    throw new \UnexpectedValueException('Package '.$job['packageName'].' can not be installed, either because its version constraint is incorrect, or because one of its dependencies was not found.');
                 }
                 }
                 throw new \UnexpectedValueException('Package '.$job['packageName'].' was not found in the package pool, check the name for typos.');
                 throw new \UnexpectedValueException('Package '.$job['packageName'].' was not found in the package pool, check the name for typos.');
             }
             }