Recently, I’ve put the error.html.twig, error404.html.twig, exception.html.twig templates to the app/Resources/TwigBundle/views/Exception project directory to override Symfony2 error pages. In the prod environment it’s working fine; in the dev environment also its overriding the default exception template, so it is very hard for debugging.
How can I get the default template working in the dev environment.
Overriding
exception.html.twigis a mistake as it is only available in DEV environment, and you don’t want a custom exception template.Extract from official doc: