// Error extracts a error from gin.Context.
Error extracts a error from gin.Context.
// Error extracts a error from gin . Context .
func Error(c *gin.Context) interface{} {
	v, ok := c.Get(ErrKey)
	if !ok {
		return nil
	}
	return v
}
func Error ( c * gin . Context ) interface { } { v , ok := c . Get ( ErrKey ) if ! ok { return nil } return v }
Error extracts a error from gin.Context.
Error extracts a error from gin . Context .