Skip to content

added a more specialized exception for a better error message #22383

New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2017

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Apr 11, 2017

Q A
Branch? master
Bug fix? yes/no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

When trying to load a resource, it is very interesting to understand why a resource cannot be loaded. Especially when you get Cannot load resource "../src/Controller/".... when the real error is that annotation support is disabled. This PR adds more information in that case.

@fabpot fabpot merged commit aeb9bff into symfony:master Apr 12, 2017
fabpot added a commit that referenced this pull request Apr 12, 2017
…message (fabpot)

This PR was merged into the 3.3-dev branch.

Discussion
----------

added a more specialized exception for a better error message

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes/no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

When trying to load a resource, it is very interesting to understand why a resource cannot be loaded. Especially when you get `Cannot load resource "../src/Controller/".`... when the real error is that annotation support is disabled. This PR adds more information in that case.

Commits
-------

aeb9bff added a more specialized exception for a better error message
@fabpot fabpot mentioned this pull request May 1, 2017
@fabpot fabpot deleted the precise-loader-exception branch September 11, 2017 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants