Skip to content
Snippets Groups Projects
Commit 9e1d5a05 authored by Ophestra's avatar Ophestra
Browse files

less bonkers text in web server panic recover routine

parent 3e66377c
Branches
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ func recovery() gin.HandlerFunc { ...@@ -15,7 +15,7 @@ func recovery() gin.HandlerFunc {
if p != nil { if p != nil {
log.Printf("panic in web server %s", p) log.Printf("panic in web server %s", p)
context.JSON(http.StatusInternalServerError, gin.H{ context.JSON(http.StatusInternalServerError, gin.H{
"error": "panic", "error": "panic in web server",
}) })
fmt.Println(string(debug.Stack())) fmt.Println(string(debug.Stack()))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment