I know there is similar question on stackoverflow but they are for previous version of symfony and I didn't find any solution to my problem.
I've just migrated from symfony 3.3 to symfony 4.0 and I can't manage to migrate customization of error pages.
I did what is explained on https://symfony.com/doc/current/controller/error_pages.html.
So I put an error.html.twig
file, an error404.html.twig
file and an exception.html.twig
file on templates\bundles\TwigBundle\Exception
repository.
In my prod environment, it's working just fine when debug is true. It uses exception.html.twig
template. But when debug is false, it didn't work and the default symfony template is displayed instead of mine.
I can't find any idea why? Do you?