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

Commit

Permalink
fixed application test error due to bad issues w/ exceptions in servi…
Browse files Browse the repository at this point in the history
…ce manager, also updated application test to reflect what it should be checking for
  • Loading branch information
mwillbanks committed Jun 14, 2012
1 parent 1cc002a commit 82264b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ public function get($name, $usePeeringServiceManagers = true)
continue;
} catch (Exception\ServiceNotCreatedException $e) {
continue;
} catch (\Exception $e) {
throw $e;
}
break;
}
Expand Down Expand Up @@ -346,9 +348,10 @@ public function create($name)
$invokable = $this->invokableClasses[$cName];
if (!class_exists($invokable)) {
throw new Exception\ServiceNotCreatedException(sprintf(
'%s: failed retrieving "%s" via invokable class "%s"; class does not exist',
'%s: failed retrieving "%s%s" via invokable class "%s"; class does not exist',
__METHOD__,
$name,
$cName,
($rName ? '(alias: ' . $rName . ')' : ''),
$cName
));
}
Expand Down

0 comments on commit 82264b3

Please sign in to comment.