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.
forgejo/modules/context
wxiaoguang 1c8bc4081a
Show friendly 500 error page to users and developers (#24110)
Close #24104

This also introduces many tests to cover many complex error handling
functions.

### Before

The details are never shown in production.

<details>

![image](https://user-images.githubusercontent.com/2114189/231805004-13214579-4fbe-465a-821c-be75c2749097.png)

</details>

### After

The details could be shown to site admin users. It is safe.

![image](https://user-images.githubusercontent.com/2114189/231803912-d5660994-416f-4b27-a4f1-a4cc962091d4.png)
1 year ago
..
access_log.go Correct the access log format (#24085) 1 year ago
api.go Set `X-Gitea-Debug` header once (#23361) 1 year ago
api_org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
api_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
auth.go Refactor cookie (#24107) 1 year ago
captcha.go Add new captcha: cloudflare turnstile (#22369) 1 year ago
context.go Show friendly 500 error page to users and developers (#24110) 1 year ago
csrf.go Refactor cookie (#24107) 1 year ago
form.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org.go Add missing tabs to org projects page (#22705) 1 year ago
package.go Improve permission check of packages (#23879) 1 year ago
pagination.go Make branches list page operations remember current page (#23420) 1 year ago
permission.go Implement FSFE REUSE for golang files (#21840) 2 years ago
private.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Ensure RSS icon is present on all repo tabs (#23904) 1 year ago
response.go Implement FSFE REUSE for golang files (#21840) 2 years ago
utils.go Implement FSFE REUSE for golang files (#21840) 2 years ago
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago