1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-01 14:56:30 +00:00
gitea/modules/context
Giteabot a3b917151c
Improve template error reporting () ()
Backport  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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
2023-03-20 17:53:45 -04:00
..
access_log.go
api_org.go
api_test.go
api.go Set X-Gitea-Debug header once () () 2023-03-09 06:33:05 +08:00
auth.go
captcha.go
context.go Improve template error reporting () () 2023-03-20 17:53:45 -04:00
csrf.go
form.go
org.go Add missing tabs to org projects page () () 2023-03-10 10:08:28 -06:00
package.go
pagination.go Make branches list page operations remember current page () () 2023-03-14 20:51:14 +08:00
permission.go
private.go
repo.go
response.go
utils.go
xsrf_test.go
xsrf.go