Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#792 from RWOverdijk/do…
Browse files Browse the repository at this point in the history
…cs/ZF2-163

Made exception messages more accurate
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function newInstance($name, array $params = array(), $isShared = true)
if (!$definitions->hasClass($class)) {
$aliasMsg = ($alias) ? '(specified by alias ' . $alias . ') ' : '';
throw new Exception\ClassNotFoundException(
'Class ' . $aliasMsg . $class . ' could not be located in provided definition.'
'Class ' . $aliasMsg . $class . ' could not be located in provided definitions.'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ServiceLocator/DependencyInjectorProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function newInstance($name, array $params = array(), $isShared = true)
if (!$definition->hasClass($class)) {
$aliasMsg = ($alias) ? '(specified by alias ' . $alias . ') ' : '';
throw new Exception\ClassNotFoundException(
'Class ' . $aliasMsg . $class . ' could not be located in provided definition.'
'Class ' . $aliasMsg . $class . ' could not be located in provided definitions.'
);
}

Expand Down

0 comments on commit 8cb611e

Please sign in to comment.