8000 [TwigBundle] show correct fallback exception template in debug mode by Tobion · Pull Request #12196 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBundle] show correct fallback exception template in debug mode #12196

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
Oct 10, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[TwigBundle] show correct fallback exception template in debug mode
  • Loading branch information
Tobion committed Oct 9, 2014
commit b97acd99f1d8ba1e0e6bc38468fb5de0043ab4b8
5D89
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function findTemplate(Request $request, $format, $code, $debug)
// default to a generic HTML exception
$request->setRequestFormat('html');

return new TemplateReference('TwigBundle', 'Exception', $name, 'html', 'twig');
return new TemplateReference('TwigBundle', 'Exception', $debug ? 'exception_full' : $name, 'html', 'twig');
}

// to be removed when the minimum required version of Twig is >= 2.0
Expand Down
0