feat(app): update
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
"runtime/debug"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Recover(c *gin.Context) {
|
||||
@ -25,7 +26,7 @@ func Recover(c *gin.Context) {
|
||||
c.Next()
|
||||
}
|
||||
|
||||
func errorToString(r interface{}) string {
|
||||
func errorToString(r any) string {
|
||||
switch v := r.(type) {
|
||||
case error:
|
||||
return v.Error()
|
||||
|
||||
Reference in New Issue
Block a user