fixed json
This commit is contained in:
parent
df5babf6c8
commit
f657bbbf28
2 changed files with 16 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func (c *Context) JSON(v interface{}) {
|
|||
|
||||
// Err is a HTTPErr wrapper for the custom Error type
|
||||
func (c *Context) Err(err Error) {
|
||||
c.HTTPErr(err.Error(), err.Status())
|
||||
c.HTTPErr(err.JSON(), err.Status())
|
||||
}
|
||||
|
||||
// HTTPErr is a http.Error wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue