Skip to content

500 page not rendered #14473

Closed
Closed
@6543

Description

@6543

Gitea version: 1.14.0+dev-610-gafbddf1f0

If you apply this patch to test a panic:

diff --git a/routers/user/profile.go b/routers/user/profile.go
index e19407baa..99c17479b 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -53,6 +53,10 @@ func Profile(ctx *context.Context) {
                return
        }
 
+       if uname != "" {
+               panic("Let's panic")
+       }
+
        isShowKeys := false
        if strings.HasSuffix(uname, ".keys") {
                isShowKeys = true

It return a plain text with the stack-trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.type/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions