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

Improved error message when ServiceManager does not find an invokable class #2707

Closed
wants to merge 1 commit into from

Conversation

bartmcleod
Copy link
Contributor

Example of improved error message:
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::createFromInvokable: failed retrieving "log(alias: log)" via invokable class "Zend\Log\Writer\FirePhp2"; class does not exist' in /Users/bartmcleod/git/CuddleFish3/vendor/ZF2/library/Zend/ServiceManager/ServiceManager.php on line 813

This used to be:
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::createFromInvokable: failed retrieving "log(alias: log)" via invokable class "log"; class does not exist' in /Users/bartmcleod/git/CuddleFish3/vendor/ZF2/library/Zend/ServiceManager/ServiceManager.php on line 813

@ghost ghost assigned weierophinney Oct 10, 2012
weierophinney added a commit that referenced this pull request Oct 10, 2012
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants