rename err.BindArgument() to err.Put()
This commit is contained in:
parent
c813c5638b
commit
332d78badd
|
@ -31,7 +31,7 @@ func (rctl RootController) Get(d i.Arguments) i.Response {
|
|||
|
||||
if !ok {
|
||||
r.Err = e.InvalidParam
|
||||
r.Err.BindArgument("url")
|
||||
r.Err.Put("url")
|
||||
return *r
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ func (tctl TokenController) Post(d i.Arguments) i.Response {
|
|||
role, ok := d["role"].(string)
|
||||
if !ok {
|
||||
r.Err = e.InvalidParam
|
||||
r.Err.BindArgument("url")
|
||||
r.Err.Put("url")
|
||||
return *r
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue