Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3139 branch 'hotfix/add-detail-to-exception-message'

  • Loading branch information...
commit ee42213e02034778f3bf93b1bf7e470476835f14 2 parents b810ca1 + 0085264
@Maks3w Maks3w authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 library/Zend/ServiceManager/ServiceManager.php
View
6 library/Zend/ServiceManager/ServiceManager.php
@@ -630,7 +630,11 @@ public function setAlias($alias, $nameOrAlias)
}
if ($this->allowOverride === false && $this->has(array($cAlias, $alias), false)) {
- throw new Exception\InvalidServiceNameException('An alias by this name already exists');
+ throw new Exception\InvalidServiceNameException(sprintf(
+ 'An alias by the name "%s" or "%s" already exists',
+ $cAlias,
+ $alias
+ ));
}
$this->aliases[$cAlias] = $nameOrAlias;
Please sign in to comment.
Something went wrong with that request. Please try again.