Commit 1dfe2ff0 by zhengqiuyun86

异常错误默认处理

parent c49e6248
......@@ -21,7 +21,8 @@ func ExceptionCatch(c *gin.Context) {
getWay.FailAndMsg(c, e.Code, e.Err)
}
break
case error:
default:
log.Error(err)
var buf [1024]byte
n := runtime.Stack(buf[:], true)
fmt.Println(string(buf[:]), n)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment