You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/templates
Giteabot a3b917151c
Improve template error reporting (#23396) (#23600)
Backport #23396 by @zeripath

There are multiple duplicate reports of errors during template rendering
due to broken custom templates.

Unfortunately the error returned here is somewhat difficult for users to
understand and it doesn't return the context of the error.

This PR attempts to parse the error returned by the template renderer to
add in some further context including the filename of the template AND
the preceding lines within that template file.

Ref #23274

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
2 years ago
..
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Implement FSFE REUSE for golang files (#21840) 2 years ago
dynamic.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Scoped label display and documentation tweaks (#23430) (#23433) 2 years ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Improve template error reporting (#23396) (#23600) 2 years ago
mailer.go Implement FSFE REUSE for golang files (#21840) 2 years ago
static.go Implement FSFE REUSE for golang files (#21840) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago