Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

bartmcleod commented Oct 8, 2012

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 weierophinney added a commit that referenced this pull request Oct 10, 2012

@weierophinney weierophinney Merge branch 'hotfix/2707' into develop
Forward port #2707
811b561

@weierophinney weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/2707' ea3acc3

@weierophinney weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/2707' into develop 08ef026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment