Fix variadic parameter

This commit is contained in:
mopemoepe 2014-07-16 14:18:45 +09:00
parent fc5caf0706
commit 08875b30d6
1 changed files with 1 additions and 1 deletions

2
gin.go
View File

@ -464,7 +464,7 @@ func (c *Context) BindWith(obj interface{}, b binding.Binding) bool {
}
func (c *Context) Render(code int, render render.Render, obj ...interface{}) {
if err := render.Render(c.Writer, code, obj); err != nil {
if err := render.Render(c.Writer, code, obj...); err != nil {
c.ErrorTyped(err, ErrorTypeInternal, obj)
c.Abort(500)
}