]> source.dussan.org Git - gitea.git/commit
Prevent template renderer from rendering error (#14646)
authorzeripath <art27@cantab.net>
Sat, 13 Feb 2021 19:41:53 +0000 (19:41 +0000)
committerGitHub <noreply@github.com>
Sat, 13 Feb 2021 19:41:53 +0000 (19:41 +0000)
commitc9f1baf62024017f1dfb2f582252978828a92f15
treed677c2de174c54100bb5790bd712dc892b7befc7
parentb3c2e23cbbfc6386f0d35e252051f9f74f548f98
Prevent template renderer from rendering error (#14646)

When there is a panic during template rendering unrolled/render
will automatically render the error. This leads to the
panic being displayed in the page and not a 500 page

Fix #14467
Fix #14525

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/templates/base.go