summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandomChars <random@chars.jp>2021-11-23 15:22:58 +0900
committerRandomChars <random@chars.jp>2021-11-23 15:22:58 +0900
commit9e1d5a059a1867d582391ae019b68f2696f8f0e8 (patch)
tree03c9c8d6e7f6c60cdf61c134090930b00967784e
parent3e66377c469674b90066b6e64e5a431cd46ac9a5 (diff)
less bonkers text in web server panic recover routine
-rw-r--r--recover.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/recover.go b/recover.go
index eafd63e..67e6e5b 100644
--- a/recover.go
+++ b/recover.go
@@ -15,7 +15,7 @@ func recovery() gin.HandlerFunc {
if p != nil {
log.Printf("panic in web server %s", p)
context.JSON(http.StatusInternalServerError, gin.H{
- "error": "panic",
+ "error": "panic in web server",
})
fmt.Println(string(debug.Stack()))
}