1
0
Fork 0

Clarify error message when packages are not found, fixes #128

pull/131/merge
Jordi Boggiano 2011-11-22 11:09:59 +01:00
parent 8d4ccd4af6
commit 0d304550b5
1 changed files with 5 additions and 1 deletions

View File

@ -139,7 +139,11 @@ EOT
continue 2;
}
}
throw new \UnexpectedValueException('Package '.$job['packageName'].' could not be resolved to an installable package.');
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'].' was not found in the package pool, check the name for typos.');
}
}