diff --git a/recover.go b/recover.go index eafd63e2ee3b856b8151703168c90160a1b7f0a3..67e6e5bdc1e1297e3887065a9d7fcf6b2458116a 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())) }