1
0
Fork 0

better exception message

pull/1050/head
Mateusz Heleniak 2012-08-31 23:32:28 +02:00
parent 6489487245
commit be736c745e
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class Installer
$sourceReference = $package->getSourceReference() ?: $package->getDistReference();
if (isset($lockedReference) && $lockedReference !== $sourceReference) {
if (!$package->getSourceType() && $package->getDistType()) {
throw new \RuntimeException(sprintf('Dist reference (%s) does not match locked reference (%s)', $sourceReference, $lockedReference));
throw new \RuntimeException(sprintf('Cannot install "%s" - dist reference ("%s") does not match locked reference ("%s")', $package->getName(), $sourceReference, $lockedReference));
}
// changing the source ref to update to will be handled in the operations loop below