diff options
Diffstat (limited to 'modules/context/panic.go')
-rw-r--r-- | modules/context/panic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/panic.go b/modules/context/panic.go index 8ed91dea65..c251337164 100644 --- a/modules/context/panic.go +++ b/modules/context/panic.go @@ -30,7 +30,7 @@ func Recovery() macaron.Handler { return func(ctx *Context) { defer func() { if err := recover(); err != nil { - combinedErr := fmt.Errorf("%s\n%s", err, string(log.Stack(2))) + combinedErr := fmt.Errorf("%s\n%s", err, log.Stack(2)) ctx.ServerError("PANIC:", combinedErr) } }() |