1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-16 06:13:43 -04:00
gitea/modules/context
zeripath 8f3aaef374
Improve template error reporting (#23396)
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>
2023-03-20 15:56:48 -05:00
..
access_log.go Parse external request id from request headers, and print it in access log (#22906) 2023-03-10 09:54:32 -06:00
api_org.go
api_test.go
api.go Set X-Gitea-Debug header once (#23361) 2023-03-08 15:40:04 -05:00
auth.go
captcha.go Add new captcha: cloudflare turnstile (#22369) 2023-02-05 15:29:03 +08:00
context.go Improve template error reporting (#23396) 2023-03-20 15:56:48 -05:00
csrf.go
form.go
org.go Add missing tabs to org projects page (#22705) 2023-03-10 09:18:20 -06:00
package.go
pagination.go Make branches list page operations remember current page (#23420) 2023-03-14 13:11:38 +08:00
permission.go
private.go
repo.go Fix tags sort by creation time (descending) on branch/tag dropdowns (#23491) 2023-03-16 12:01:10 -05:00
response.go
utils.go
xsrf_test.go
xsrf.go